I’m creating a PDF from an Excel Sheet with Aspose.Cells for .NET. But in PDF the last lines are missing.
I’ve attached the Excel file and the PDF created with Aspose. On page 2 the PDF document ends with line “E21” but in Excel there are some more lines.
Is this a bug, or is something wrong with the Excel file?
Using the lastest version: Aspose.Cells 8.9.2
Hi Rainer,
book.Worksheets[0].PageSetup.PrintArea = “”;
book.Save(dir + “output.pdf”);
Thank you for the fast reply.
Does Aspose set a default print area, if I don’t set one manually?
In the Excel file there is no print area set (see attached screenshots).
When I go to Excel and save the file as PDF, the missing lines are included. Only when using Aspose they are missing.
Hi again,
Thank you for your help.
I’ve done some further research and I can say that it’s not a Problem with Aspose. The Excel file does contain a print area but it’s not shown when opened with a german version of Excel.
When the Excel file is opened with a text Editor, the print area is shown.
I think this is a bug in Excel. Looks like, when a Excel file is saved with an english Version, some Features doesn’t work correctly any more when opend with a german Version after that.
The print area set by myself (A1:F6)has a different Name than the original print area.
I will Report this to Microsoft.
Hi Rainer,
Thank you for letting us know that you have figured out the problem. Please feel free to contact us back in case you need our further assistance with Aspose APIs.