Re[2]: [Tutor] Default printer in Windows

Andrew Andrew <angelopoulos@csi.com>
Tue, 8 Oct 2002 18:54:33 -0400


MM> It's Windoze and I'm trying to print to a printer defined on the client
MM> machine.  My latest approach is to use this:
MM> os.system('"c:\program files\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe /p /h
MM> e:\\mjm\\bor.pdf"')
MM> to print a file named e:\\mjm\\bor.pdf".
MM> It will only work if everyone's Acrobat.exe is in the same place, but
MM> perhaps I can try a couple of different locations.  All I need is to get
MM> the filename from zope and, in theory, it should print on the default
MM> printer for the machine that Acobat is installed (the  client).
MM> Untested but I hope it works cause the alternatives seem very complex.


Hi Michael,

I'm not a Python expert, and there might be a better way, but why not
prompt them to find Adobe for you the first time? You can then store/pickle that
information?

-- Andrew                            
mailto:angelopoulos@csi.com
--