"Maravilloso" <[EMAIL PROTECTED]> 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
>functioning.')

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, [EMAIL PROTECTED]
  Providenza & Boekelheide, Inc.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to