[reportlab-users] Printing PDF from reportlab/python/WinXP

Scott Karlin scott+reportlab at CS.Princeton.EDU
Fri May 6 12:56:22 EDT 2005


Hi Thomas,

This was exactly what I needed.  Given your response it was easy
to Google with "win32api ShellExecute print" to find similar
solutions.  Without your response I was lost.

Thanks,
Scott


On Mon, May 02, 2005 at 05:09:44PM +0200, Thomas Blatter wrote:
> Hi Scott,
> 
>   you can try to use the file associations:
> 
>   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
> 
> Scott Karlin schrieb:
> >I can successfully generate a PDF from within a python application 
> >running under Windows XP.  Printing the PDF now involves finding
> >the file and then invoking acrobat.  Since this involves an extra
> >step, I'd like to be able to either (1) print directly using
> >reportlab, or (2) invoke acrobat (with some print option) from
> >my application.  Does anyone have some suggestions as to how to
> >go about this?
> _______________________________________________
> reportlab-users mailing list
> reportlab-users at reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users


More information about the reportlab-users mailing list