Hello,
I convert the attached Excel workbook to PDF as follows using Aspose.Cells for .NET 19.5:
Aspose.Cells.Workbook workbook = new Aspose.Cells.Workbook("input.xls");
foreach (var sheet in workbook.Worksheets)
{
foreach (var ole in sheet.OleObjects)
ole.HasLine = false;
}
var saveOpts = new Aspose.Cells.PdfSaveOptions();
saveOpts.PrintingPageType = Aspose.Cells.PrintingPageType.IgnoreStyle;
workbook.Save("output.pdf", saveOpts);
The first 5 pages of the PDF are rendered correctly. However, pages 6 to 58 are rendered as empty rows (happens regardless PrintingPageType being is set to IgnoreStyle or IgnoreBlank). The content in the workbook on sheet 2 is largely missing.
input.zip (869.1 KB)
Can you please advise:
-
How can I stop the empty rows from being added to the PDF;
-
Is it possible to get the embedded workbook to fully display?
Thank you!