Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

enumerating network printer ports onto activeprinter (ne#)

Status
Not open for further replies.

kesm

Technical User
Jul 8, 2002
19
0
0
GB
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 address:port, so I can't mapp an lpt port to it

Thanks IA



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top