I am working in Visual basic under Windows 2000 Network.
I am using the following code for printing in dos mode.
open "prn" for output as 1
print #1, "test printing"
close #1
The above statements are working when the printer is connected in my system.
Similarly, when the printer is connected in some other node (printer is shared in my machine) it is showing some error.
Please help me
Awaiting for your favourable reply.
by
Ganesh
[Edited by vishnuganesh on 24-10-2002 at 01:35 PM GMT]
[Edited by vishnuganesh on 25-10-2002 at 03:56 PM GMT]
23-10-2002 at 07:17 PM
|
JLRodgers Level: Moderator Registered: 04-04-2002 Posts: 1617
Re: Printing
Offhand I belive it's because "prn" is the printer (parallel) port on the PC.
I don't send data to the printer that way so I don't have a solution. Although I'd suggest that you look for info on the Print Common Dialog (help files, or internet) it may be useful.