Problem printing in Win98

Roger Upole rupole at hotmail.com
Sun Nov 20 04:17:19 EST 2005


According to MSDN, err code 31 from ShellExecute is SE_ERR_NOASSOC,
meaning there's not an application registered for printing that file type.

        Roger

"Maravilloso" <maravilloso at gmail.com> wrote in message news:1132474167.583323.137390 at z14g2000cwz.googlegroups.com...
> Hi
>
> 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.')
>
>
> Curiously, that instruction does works on Win2K/XP, but trying to use
> this shortcut for easy printing in Win98 provokes such error. I've
> tried in different machines (all of them running with Win98) and I
> obtain the same output.
>
> Does anybody knows what happens with Win98 printing automation?
> Any idea?
>
> Thanks in advance
> 



----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----



More information about the Python-list mailing list