Hello,
We have a Windows XP machine that is sharing a printer connected to it via USB. From my Windows 7 computer, I have added the shared printer to my local printers using the "Add a printer" wizard, going down the "Add a network, wireless or Bluetooth printer" route.
I can print to the printer using Notepad, but when I try to print to that printer using code, I am getting an error:
"Print job could not be created in the spooler. Error code:3003"
The code is the basic sample:
Dim testJob As New PrintJob(printerName, "C:\temp\test.pdf")
testJob.Print()
Where printerName is the name of the printer.
Is this the correct procedure? Do I need to get a network addressable device (ex. JetDirect card) to print directly to the printer instead of through the share?
Thanks in advance.