Re: [Tutor] Further help needed!

2006-01-05 Thread John Corry
Notepad opens and prints the text file. Regards, John. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of John Fouhy Sent: 04 January 2006 21:54 To: Tutor Subject: Re: [Tutor] Further help needed! [resending 'cause I forgot to address to tutor..] On

Re: [Tutor] Further help needed!

2006-01-04 Thread Alan Gauld
- From: "John Corry" <[EMAIL PROTECTED]> To: Sent: Wednesday, January 04, 2006 9:01 PM Subject: [Tutor] Further help needed! >I am using the following code to send a text file to the printer:- > > import win32api > filename = "testprint.txt" > fileobj=op

Re: [Tutor] Further help needed!

2006-01-04 Thread John Fouhy
[resending 'cause I forgot to address to tutor..] On 05/01/06, John Corry <[EMAIL PROTECTED]> wrote: > This code works on windows XP + Windows 2000. However it does not work on > windows 98SE. I have tried this code on 3 seperate machines with windows > 98SE. They all come up with the same erro

[Tutor] Further help needed!

2006-01-04 Thread John Corry
I am using the following code to send a text file to the printer:- import win32api filename = "testprint.txt" fileobj=open (filename, "w") fileobj.write ("This is a test") fileobj.close() win32api.ShellExecute ( 0, "print", filename, None, ".", 0 ) This code works on windows XP + Wind