Printing from the wx.lib.plot.py demo does not work at all for me - even
though the return value of wx.Printer.Print() indicates success. Under some
circumstances I seem to get a fatal exception - I have not yet installed a
debugger to determine the nature of that exception - but will probably do so
soon.
On most tries, everything seems to be working fine, except that I am not
getting any output to the printer.
The printer I'm using is a standard HP LaserJet 5MP.
Apart from that, wxPython rocks - keep up the good work!
Printing from the wx.lib.plot.py demo does not work at all for me - even
though the return value of wx.Printer.Print() indicates success. Under some
circumstances I seem to get a fatal exception - I have not yet installed a
debugger to determine the nature of that exception - but will probably do so
soon.
On most tries, everything seems to be working fine, except that I am not
getting any output to the printer.
The printer I'm using is a standard HP LaserJet 5MP.
Does the PrintFramework sample in the demo work?
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Yes, sorry, I overlooked that. That works.
I'll compare those two and see if plot.PlotPrintout's missing some
functionality or doing something radically different.
···
-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: 19. maí 2004 19:14
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] Cannot print at all!
Eggert Jón Magnússon wrote:
Am running on Windows XP, 2.5.1.5-unicode.
Printing from the wx.lib.plot.py demo does not work at all for me - even
though the return value of wx.Printer.Print() indicates success. Under
some
circumstances I seem to get a fatal exception - I have not yet installed a
debugger to determine the nature of that exception - but will probably do
so
soon.
On most tries, everything seems to be working fine, except that I am not
getting any output to the printer.
The printer I'm using is a standard HP LaserJet 5MP.
Does the PrintFramework sample in the demo work?
--
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
Yes, sorry, I overlooked that. That works.
I'll compare those two and see if plot.PlotPrintout's missing some
functionality or doing something radically different.
Looks like I found the culprit, although it seems to me to be a rather weird
one.
If I make PlotPrintout.GetPageInfo() return (1,1,1,1) rather than (0,1,1,1),
printing seems to kick in.
The documentation says:
"""
Called by the framework to obtain information from the application about
minimum and maximum page values that the user can select, and the required
page range to be printed. By default this returns 1, 32000 for the page
minimum and maximum values, and 1, 1 for the required page range.
If minPage is zero, the page number controls in the print dialog will be
disabled.
"""
Apparently, minPage being zero disables something else, as well?
Yes, sorry, I overlooked that. That works.
I'll compare those two and see if plot.PlotPrintout's missing some
functionality or doing something radically different.
Looks like I found the culprit, although it seems to me to be a rather weird
one.
If I make PlotPrintout.GetPageInfo() return (1,1,1,1) rather than (0,1,1,1),
printing seems to kick in.
The documentation says:
"""
Called by the framework to obtain information from the application about
minimum and maximum page values that the user can select, and the required
page range to be printed. By default this returns 1, 32000 for the page
minimum and maximum values, and 1, 1 for the required page range.
If minPage is zero, the page number controls in the print dialog will be
disabled.
"""
Apparently, minPage being zero disables something else, as well?
I think that there was a change a while back in the order that the wxPrintout methods are called in order to work around a bug. Perhaps that had something to do with it.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!