[python-win32] Python Automation Question

Tim Roberts timr at probo.com
Wed Feb 17 23:43:20 CET 2010


Roberts, Gregory (Contractor) wrote:
>  
> The automation runs on a VM and is working smoothly except for with
> one report.  It requires that the default printer on the VM is set to
> print to PDF and I am unsure of how to go about this.  I have
> inherited the code after essentially writing the requirements and am
> excited to begin coding in Python.  I would prefer not to have to
> contact the initial developer if at all possible and use this as a
> learning experience since again, I am maintaining the automation scripts.

Well, at the risk of being flippant, it seems to me that the right thing
to do is to change the default printer to print to PDF.  By hand.

Assuming you have Acrobat installed, go into Settings, Printers and
Faxes, right-click on Adobe PDF and select "Set as Default Printer".

It would be very unfriendly for you to have your script change the
default printer.  Users do not expect that.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list