[python-win32] Question about printing through IE

Jason Robinson jaywink at gmail.com
Thu Mar 30 11:34:26 CEST 2006


Roger,

Thanks! I'm currently fixing the program to make a pdf file instead.. but
being able to program it to do the page setup stuff for IE would be easier..

Will look into that registry stuff.. need to find out how to access it first
:)

-Jason



On 3/30/06, Roger Upole <rwupole at msn.com> wrote:
>
> Jason Robinson wrote:
>
> >   Hi,
> >
> > Being relatively new to Python (and no advanced programmer anyhow) I
> have a
> > question..
> >
> > For a work related program I need my Python script to be able to change
> > printer settings in IE before printing. I have a script which creates an
> > HTML file with images and text and it uses the ShellExecute approach to
> > print it to a printer (using IE obviously). Only problem is I need it to
> > access the IE printing settings directly and modify them before printing
> > (margins etc etc). I've searched the web throughout but can't figure out
> > where to start...
> >
> > Any hints on what I should do?
> >
> > Cheers for any help!
>
> IE stores printing parameters in the registry at
> HKCU\Software\Microsoft\Internet Explorer\PageSetup.
> For options not covered there, you can use functions in
> the win32print module to change your default printer settings,
> but they'll apply to anything you print, not just IE.
>
>      hth
>           Roger
>
> _______________________________________________
> Python-win32 mailing list
> Python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
>



--
Jason Robinson
jaywink at gmail.com
http://jaywink.1g.fi for pics, gigs & mixes
tel. +358468507826
MSN: jasupasu at hotmail.com
AIM: jaywinx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20060330/e62118ce/attachment.htm 


More information about the Python-win32 mailing list