We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

HTML to Excel - x:PageBreaks doesn't work using Aspose.Cells for Java

x:PageBreaks can set page break when opening HTML in Excel.
However, Aspose Cells for Java seems ignore it when convert the HTML to XLS/XLSX.
Please help.

e.g. following setting in HTML head tag should set a page break in row 35 and another page break in row 59.

<!--[if gte mso 9]><xml>
<x:ExcelWorkbook>
<x:ExcelWorksheets>
<x:ExcelWorksheet>
<x:WorksheetOptions>
<x:Print>
<x:ValidPrinterInfo/>
<x:HorizontalResolution>600</x:HorizontalResolution>
<x:VerticalResolution>600</x:VerticalResolution>
</x:Print>
</x:WorksheetOptions>
<x:PageBreaks>
<x:RowBreaks>
<x:RowBreak><x:Row>35</x:Row></x:RowBreak>
<x:RowBreak><x:Row>59</x:Row></x:RowBreak>
</x:RowBreaks>
</x:PageBreaks>
</x:ExcelWorksheet>
</x:ExcelWorksheets>
</x:ExcelWorkbook>
</xml><![endif]-->

@billswd,

Could you please zip and attach your input HTML file and output Excel file to evaluate your issue. Also, when you do save the HTML file to XLS/XLSX via MS Excel manually, do you see different behavior (regarding pagebreaks) in the output file Vs output file by Aspose.Cells?