Html Printing - setting the page width

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.

Geoff Skerrett wrote:

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?

You'll probably need to ask about this on wx-users.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

>
> 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?

You'll probably need to ask about this on wx-users.

Sorry to both the list with this.
wxHtmlEasyprinting was working as instructed.
In the table, I had set the cell widths to fixed points, so when
printing it had no way of knowing how to expand.

Once I set the cell widths to % worked perfectly.

Geoff.