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
-
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
[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
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