[reportlab-users] Printing through Adobe Reader - shutdown

Reed O'Brien reed at intersiege.com
Mon Nov 20 21:00:04 EST 2006


not sure about shellExecute but you might be able to call taskkill /
IM acroexeName.exe to kill it.
or instantiate ie (privided by the plugin) print quit...

from win32com.client import Dispatch

ie = Dispatch("InternetExplorer.Application")
ie.Navigate(path_to_pdf)
ie.Document.printPages(1,3)
ie.Document.printAll()
ie.Quit()

Works with Acrobat reader 7 as tried above.


~r

On Nov 20, 2006, at 3:19 PM, Jim Steil wrote:


> Hi:

>

>

>

> I’m generating my reports without any problems through ReportLab.

> I’m now printing them using ShellExecute through python, but when

> I’m through printing, the Adobe Reader Windows interface is still

> open. I can’t seem to find a way to close it automatically.

> Anyone have any hints on how to do it? I realize this is not a

> ReportLab issue, but thought others here may have overcome this

> hurdle already.

>

>

>

> -Jim

>

>

>

> _______________________________________________

> reportlab-users mailing list

> reportlab-users at reportlab.com

> http://two.pairlist.net/mailman/listinfo/reportlab-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://two.pairlist.net/pipermail/reportlab-users/attachments/20061120/f8f1cc45/attachment.htm


More information about the reportlab-users mailing list