Page is not breaking perfectly in html
Today when printing a report, when I export to PDF or use the preview the printing is right, however when exporting to html and printing via google chrome after a few pages the break starts to shift.
Can anyone help me solve this problem?
My current solution is to manually inject html with code to break the page, but of course, I am looking for a more elegant solution to the problem.
This discussion has been closed.
Comments
Hello!
For accurate printing from a browser, export to PDF (PDFExport) rather than HTML. Chrome and the built-in PDF viewer reproduce page breaks with millimeter-level precision, matching those in Preview.
If you specifically need an HTML export, enable single-page mode in HTMLExport (htmlExport.SinglePage = false; / PageBreaks = true) and use the CSS rule @media print { ... page-break-after: always; }, while disabling any unnecessary print margins in the browser’s print dialog.