Problem printing in Win98
timr at probo.com
Mon Nov 21 08:22:03 CET 2005
"Maravilloso" <maravilloso at gmail.com> wrote:
>I'm trying to automatically send a postscript file to be printed to the
>default printer in a Win98 PC, by means of using the instrucction:
> win32api.ShellExecute (0, "print", "file.ps", None, ".", 0)
>but it raises an exception with the message:
> error: (31, 'ShellExecute', 'A device attached to the system is not
Roger is correct. In order to print a .ps file, you have to have installed
an application that handles .ps files. You have probably installed
GhostScript on your 2K/XP box. If you install it on your Win98 box, your
ShellExecute should work.
- Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-list