Hello!
I've written an application that generates reports in html format. (wxPython 2.3.2.1 on win98. ) In order to preview and print these reports the following simple class is used:
···
---------------------------------------------------
class Html_ki(wxHtmlEasyPrinting):
def __init__(self):
wxHtmlEasyPrinting.__init__(self, 'Jelentés', NULL)
def jelent(self, h_file_nev):
self.SetFooter('<CENTER><FONT SIZE="1">@PAGENUM@./ @PAGESCNT@ oldal</FONT></CENTER>')
self.GetPrintData().SetOrientation(wxLANDSCAPE)
self.GetPageSetupData().SetMarginTopLeft((20,20))
self.GetPageSetupData().SetMarginBottomRight((15,15))
if self.PreviewFile(h_file_nev)!=None : pass
Html_kimenet = Html_ki()
----------------------------------------
It works fine, but there is a large report (~450 Kbyte) that consists of 80 A4 landscape pages. Previewing this one from the 30th page most of the lines are showed "to be printed over" by another line. Unfortunately these pages printed as they shown in preview. It is very interesting that not the following line "printed over" the previous, but a line originated from somewhere end of this report. (?)
So, what shell I do? Shall I separate this report to 2 smaller one, or call an application that is able to preview and print this "large" file? Is there any limit (size in byte, pages) for the html files that affects the useage of wxHtmlEasyPrinting class?
Thanx
Peter