Movatterモバイル変換


[0]ホーム

URL:


driving Internet Explorer with Python

Neil Hodgsonneilh at scintilla.org
Thu Apr 5 08:42:40 EDT 2001


Alex Martelli:> "Neil Hodgson" <neilh at scintilla.org> wrote in message>     [snip]> >    Scripting IE is a /huge/ topic. I had a look and couldn't find a wayto> > print to a particular device.>> I think you just need to win32print.SetDefaultPrinter('whatever'),> then use the .ExecWB method with the don't-prompt-user option (I> have not tested this).   Looking up SetDefaultPrinter in MSDN gives two areas of information, oneon the wshNetwork object and one on munging WIN.INI. It looks like thewin32print module is a front end to wshNetwork or something cleverer hasbeen done underneath. If it is the wshNetwork object then MSDN says theargument is the 'Remote printer name to set as default, such as"\\Server\Printer1". Note that strPrinterName cannot be a local name such as"LPT1:". '   Neil


More information about the Python-listmailing list

[8]ページ先頭

©2009-2025 Movatter.jp