I am using Aspose.Cells to generate a workbook with multiple pages. I now have a requirement to allow the user to export to Excel or directly to pdf. In reading your documentation, I have modified my code to use the following function call.
// for output to Excel
outputExcel.Save(strFile + ".xls", SaveType.OpenInExcel, FileFormatType.Excel97To2003, HttpContext.Current.Response);
// for output to PDF
PdfOptions.OnePagePerSheet = true;
outputExcel.Save(strFile + ".pdf", SaveType.OpenInExcel, FileFormatType.Pdf, HttpContext.Current.Response);
HttpContext.Current.Response.End();
However, the output to PDF contains blank pages for the first 3 tabs of the spreadsheet. Can you please take a look at the spreadsheet to see if there is something that is preventing the first three tabs from rendering correctly in the PDF file?
I am using Aspose.Cells version 4.9.0. I attempted to install version 4.9.1 to see if a bug had been fixed, but I am receiving a runtime error on the call to "Save"--something about a bad parameter called "offset". I've since rolled back to version 4.9.0.
Thanks,
Pam