[python-win32] Python Automation Question
Steven James
steven.james at gmail.com
Thu Feb 18 03:48:30 CET 2010
PDFCreator has a COM API...might be able to solve your problem a different
way.
If user-friendliness does not matter, try this knowledge base article:
http://support.microsoft.com/kb/156212
<http://support.microsoft.com/kb/156212>It describes how to change the
default printer (per user) through a registry setting.
SJ
On Wed, Feb 17, 2010 at 5:43 PM, Tim Roberts <timr at probo.com> wrote:
> 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.
>
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20100217/d94e3d85/attachment.htm>
More information about the python-win32
mailing list