Hi Robin,
Sorry, I don't quite know what you mean here.
Could you just change the code, please?
Thanks very much.
Cliff
import wx
import wx.html
def _test():
app = wx.PySimpleApp()
printDialogData = wx.PrintDialogData()
printer = wx.Printer(printDialogData)
printout = wx.html.HtmlPrintout()
html='<html><body>Hello World!</body></html>'
printout.SetHeader(html)
printer.Print(None,printout,False)
if __name__=='__main__':
_test()
···
-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: 27 September 2006 21:01
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] Different behaviour of HtmlPrintout in 2.4
and 2.6
Cliff Xuan wrote:
Hello people,
I'm a new wxPython user.
Very happy to join this community.
I've got a problem when I am printing html from a native printer.
The code below works in wxPython 2.4, but in 2.6 nothing is printed
out.
If you change the line
printer.Print(None,printout,False)
to
printer.Print(None,printout,True)
It works in both the 2 versions; however, this is not what I want. I
don't like to have the printer property page pop up.
I wonder if there is a solution.
Yes, you need to fill it the values of the wx.PrintDialogData that would
normally be set by the dialog.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org