I have a simple form with a combobox and three buttons.
Each button prints out a particular document.
The combo box is there to select the printer.
OnLoad runs through:-
for printer in printers
comb.additem .devicename & " on " & .port
next
CombOnChange():-
PRT_Port = Comb.Text
When the user clicks on one off the 3 buttons to printout the document, the code opens up the word doc, sets the MyWrdApp.ActivePrinter = PRT_Port;
This is giving the error 'An Printing Error Has Occured'
This works fine for LPT1 printer, but not on a Network Systems Printer, which is on IPADDRESS:CANONGP6
The problem is; the .Port is returning as NE1 for the networked printers.
Any ideas how i can get this to work, bearing in mind this is on an IP addressort, so I can't mapp an lpt port to it
Thanks IA
Each button prints out a particular document.
The combo box is there to select the printer.
OnLoad runs through:-
for printer in printers
comb.additem .devicename & " on " & .port
next
CombOnChange():-
PRT_Port = Comb.Text
When the user clicks on one off the 3 buttons to printout the document, the code opens up the word doc, sets the MyWrdApp.ActivePrinter = PRT_Port;
This is giving the error 'An Printing Error Has Occured'
This works fine for LPT1 printer, but not on a Network Systems Printer, which is on IPADDRESS:CANONGP6
The problem is; the .Port is returning as NE1 for the networked printers.
Any ideas how i can get this to work, bearing in mind this is on an IP addressort, so I can't mapp an lpt port to it
Thanks IA