I'm trying to get the wxPrintout() code sample in the wiki to work for me
and I've spent several hours going in circles, I think, without getting it
to work. I'm lost - but making good time. Thanks, BTW, to Sean McKay for
putting it there at all. Having a ready-made print ability that just works
seems almost too good to be true. At least it provides some hope for me.
But, on my system (Python 2.3 / wx 2.4.2.4u / WinXP) it is not happy. I can
get the PageSetup dialog working OK, but not the PreviewText or Print
methods.
PreviewText - After bypassing the try/except error-trapping it errored out
on lines 46 & 47 about the keyword "text" parameter being unexpected.
Removing them allows the preview screen to display, but it's blank. That
makes sense to me, since without that parameter I can't see where else the
preview dialog is supposed to get the text to display.
Print - it generates its error message "unable to print document" but if I
comment out the if/else error trap and dedent the else clause, it just runs
without any error message and without printing or even displaying a dialog.
no error - and no success.
Has anyone else run into these problems on the Windows platforms and,
hopefully, resolved them?
Or, is there another good example of implementing the wxPrintout() methods I
can look at to see how it all ties together?
Thanks
-Rick Zoerner