Remote printing with VB5
Posted on 1998-04-21
I have a PCL file : test.prn.
I have a printer remotely connected : HP LaserJet 5 on SRV02 (\\SRV02\HP LaserJet 5).
I want to do 2 things :
1. A list of printers on the computer with the network path for remote printers.
For example :
HP LaserJet 4
HP LaserJet 5 - \\SRV02\HP LaserJet 5
2. I want to send the file to the printer.
How can I do ? I've tried with OpenPrinter, AddJob, ScheduleJob but AddJob doesn't work for remote printers.
I have had some problems with the types used bye these functions.
Can someone give me some code samples ?
If the answer is too long, e-mail me at email@example.com.