-
I have two identical printers installed in the same PC/Win98. I use this code to select the printer.
Code:
Dim prnObj as Printer
For each prnObj In Printers
if prnObj.DeviceName = "X Printer" then
Set Printer=prnObj
end if
next
This printer is attahced in a LPT2: port.
I use several printer methods but the priting job always go to printer in LPT1: (default printer).
Any idea will be deeply appreciated.
Thanks!
-
Have you tried using the common dialog printer selection control. Haven't had this problem on a network, but then again we just supply the common dialog in apps and allow the users to select. It sounds like even though you are changing the printer, vb is handing the print job to windows, which is using the default printer. Maybe there is a set default printer obtion somewhere in vb, or as an api call
-
I'm having problems changing printers when using the CDL print. Do you have an example of how to use the cdl printer to set the printer the user wants?
Any help would be appreciated thanks
Jennifer