Sorry guys I dunno where should I ask this question since this involves html and wxpython.

I am using python to generate a html file, then let users print it out with wxpython's easyhtmlprint function. All works well except for 1, I need to put page breaks between each page, I used "<br style="page-break-after:always;">", it works in normal browser print preview, but not in easyhtmlprint, it doesnt seemed to recognize it and the page break is not applied, I have like hundreds of reports merged together, very messy.

I tried to count the lines, there are 51 lines per page, but it's not very accurate, especially when I will have logo. Is there a solution for these?