[reportlab-users] Show the pdf on screen

John Pywtorak jpywtora at calpoly.edu
Mon Jun 5 16:59:28 EDT 2006


Paulino wrote:
> Is there a way to show automatically the pdf on the screen as soon as it 
> is generated?
> 
> 
> Paulino


Here is a copy of a suggested way from Thomas Blatter, and I can't say 
it any better.

 >  import win32api
 >   win32api.ShellExecute(0,"print","path\\to\\the.pdf",None,".",0)
 >
 >   This should work as long as Acrobat reader is correctly installed. If
 > u really need special options you'd have to fix the print for .pdf in
 > the registry.
 >
 >   Thomas Blatter

-- 
Windows
Start Here
Frustrating Hanging Crashing
Blue Screen of Death
Reboot



More information about the reportlab-users mailing list