I have a workbook where I dynamically add worksheets, but I need to have it downloadable as a PDF file. If I save the work book to the response with PDF format, everything works correctly. However, the end goal is to send the PDF as an email attachment. I have tried saving the workbook to a stream in multiple ways, and then either writing the stream to the response or creating an attachment object and sending the email. Is there a way to accomplish my goal of performing all of the work in an aspose workbook and then sending the file as a PDF email attachment?
I'm using C#.NET. I have ASPOSE.CELLS 4.8.1.
MemoryStream stream = new MemoryStream();
bookDesinger.Workbook.Save(stream, FileFormatType.Pdf);
and
MemoryStream stream = bookDesinger.Workbook.SaveToStream();
This message was posted using Aspose.Live 2 Forum