[wxPython-users] Anybody knows how to print out main windows or frame?

Robin Dunn robin at alldunn.com
Sat Jan 12 15:25:16 PST 2008


Dong-In Lee wrote:
> Thank you Robin.
>  
> Now I can capture window and save to a file. Also, I can print the file by
>  
> win32api.ShellExecute(0,"print",fileName,None,".",0)
>  
> However, when I do this, it opens Windows Picture and Fax Viewer. 
> Definitely, I cound print with the viewer. However, I want to just 
> directly print the file without launching any program. Can I do that?

See the examples for the Printing Framework.

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




More information about the wxpython-users mailing list