We are using Aspose.cells to create Excel and PDF reports.
In case large comment texts get inserted into our templates (using setHmtlString) we are enlarging the cell height (setHeight). In that case sometimes we see an additional line break inserted into the Excel version which results in an additional page break. In case of PDF output no additional line/page break is inserted and the content remains all on the same page.
Our developers have assembled a demo code to show this issue:
pagebreakdemo.zip (2.3 MB)
When running the demo the number of printing areas is shown:
Number of printing areas=1
After the demo has finished please open the generated pagebreakdemo.out.pdf and - in Excel - the pagebreakdemo.out.xlsx. Compare the PDF with the Excel print preview: While the PDF version fits on one page, the Excel version occupies two pages.
Best regards,
Benjamin