I need to show pdf out put as preview before save to a location. But not need to show things like print dialog, print setting etc. How can i show preview after converting excel file to PDF as stream?
Aspose.Cells.Workbook workbook = new Aspose.Cells.Workbook(inputExcelFilePath);
System.IO.MemoryStream stream=new System.IO.MemoryStream();
Here i convert excel to pdf and save to stream, From this stream i need to show preview.
Well, Aspose.Cells is spreadsheet management component that has an extra utility to render Workbooks to PDF file format. It does not provide any such preview tool. I think if you are using web application and has Adobe acrobat installed, you may simply response the PDF stream to the browser/tool accordingly, see the sample lines of code that you may add at the end.
Response.Charset = “UTF-8”;
Response.CacheControl = “private”;
Response.ContentType = “application/pdf”;
Response.AddHeader(“content-disposition”, “attachment;filename=” + “mypdftest.pdf”);