Printing a document in the default network printer under Windows

2005-10-26 Thread Maravilloso
Hi all:

I'm getting mad trying to find the way for making a standard
document (Word file, Postscript document, JPEG file...) to be
sent/printed in the default network printer from a python script that
runs on Win2K.

Any idea?

Thanks in advance.

Maravilloso

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Printing a document in the default network printer under Windows

2005-10-26 Thread Maravilloso
Perfect, thanks!

I owe you now some PyBeers :-)

-- 
http://mail.python.org/mailman/listinfo/python-list


Problem printing in Win98

2005-11-20 Thread Maravilloso
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

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ANNOUNCE; Try python beta

2005-12-21 Thread Maravilloso
I'm afraid that I've spoiled the "try_python" working by means of
executing the sentence:

open("try.py").write("\n")

Sorry. I hope it don't be difficult for you to restore the module again
to the default folder.

In any case, I think it should include some control for malicious code
like that one.

-- 
http://mail.python.org/mailman/listinfo/python-list