Trying to get HTMLEasyPrinting to print a table from an HtmlWindow
in landscape mode and having difficulty.
Specifically, the printer recognizes the "landscape" setting, however,
the actual printout is still only taking up 8.5 inches, rather than
the full 11.0 inches.
Any suggestions as to where I might look next?
my printer setup is as follows;
Def OnPrint(self, evt)
printout = html.HtmlPrintout("All transactions")
printout.SetHtmlText(self.content)
printout.SetMargins(5,5,5,5) #this is recognized be the
print job
parent = self.GetParent() #thought this might
change the size
printout.FitThisSizeToPaper(parent.Size) #but had not affect
printdata = wx.PrintData()
printdata.SetPaperId(wx.PAPER_LETTER)
printdata.SetOrientation(wx.LANDSCAPE)
printdialog = wx.PrintDialogData()
printdialog.SetPrintData(printdata)
printdialog.SetAllPages(True)
printdialog.SetNoCopies(1)
printer = wx.Printer(printdialog)
printer.Print(None, printout) #prompt = False)
evt.Skip()
Thanks in advance.
G.