Macro - Printing to Label Printer with IP address as name

B

BugCrusher

We have a number of word macros in a shared template that print to 9 specific
non-statically mapped label printers, using this code below. Recently, we
had to change the printers to have specific IPs, rather than a friendly name.

Dim sCurPrinter As String
With Application
sCurPrinter = .ActivePrinter ' Store current printer.
.ActivePrinter = "\\NETWORK1\PRINTER1" ' Change Printers.
ActiveDocument.PrintOut ' Print the active document.
.ActivePrinter = sCurPrinter ' Set printer back to current.
End With

In the new configuration, I'd like to set .ActivePrinter with PRINTER IP as
below, but haven't been able to get this to work.
.ActivePrinter="\\124.1.1.35\"

When I do map the printer to get more info on it, I do see that it is using
Port 9100 if that helps. I don't want to hard map all the users, when it
worked perfectly fine before they switched them to IP.
Anybody doing this, or have a solution?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top