Hi,
I received a feature request of sorts the other day to allow a user to
take a screenshot of an application I wrote in wxPython and print said
screenshot out. I found Andrea's great script for getting the screenshot,
but getting it to print is painful. I am trying to use the
HtmlEasyPrinting object, which works except that the image that is sent is
too large. Is there a way to scale the image in wxPython to fit letter
size paper (8 1/2" x 11")?
I tried doing it in html, which does work, but the result is kind of tiny
(i.e. hard-to-read). Is there a recommended way to do this?
A related question: Is there a way to translate some reportlab code into
some kind of wxPrintDC code such that I can use one of the Printing
frameworks in wxPython? I currently print by creating a PDF using
reportlab and then sending it to the printer using the following command:
win32api.ShellExecute(0,'print',filepath,None,'.',0)
My setup is wxPython 2.8.6.1 (msw-unicode), Python 2.4, Windows XP.
Mike Driscoll
Applications Specialist
MCIS - Technology Center