Setting Up A - Localhost - Printer With Print Wizard
Setting Up A - Localhost - Printer With Print Wizard
Setting Up A - Localhost - Printer With Print Wizard
com (/)
Products Downloads (/content/downloads) Order Partners Support C
Windows can print to a printer that is directly attached to the network. In some situations,
we make Print Wizard act like it is a network printer; that is, a Print Wizard service
emulates a printer's network interface, receiving print jobs and printing them. When the
program generating the printout and the Print Wizard service are running on the same PC,
we call this a "localhost" setup.
The term "localhost" has special meaning in the world of TCP/IP. Essentially, it means
You would use this approach when you want to have Print Wizard receive (or intercept)
the output of a Windows printer driver on the same machine. Most Windows programs
will print only by use of a Windows printer driver. In order to redirect that output to Print
The program generating the data writes to the Windows printer interface, which writes to
a particular printer driver. The port of that printer driver is set to "Standard TCP/IP"
(either "raw" or "LPR" on a speci c queue), and sends its output to a speci ed hostname
LPR/LPD protocol carries more information, such as the job name and user name.
The program generating the printout might drive the printer driver at a high level or a low
level. Microsoft Word, for instance, outputs at a high level. It sets paper size, changes
fonts, prints pictures, etc., using high-level calls to the Windows printing system. The
particular printer driver in use translates these calls into some kind of a printer control
language. This needs to be something that Print Wizard can understand, which usually
means PCL-5.
Other programs, especially legacy programming languages such as COBOL or Pick Basic,
simply send the printer driver a stream of bytes at a low level. This stream might be all
plain text, or it might contain escape sequences. Print Wizard will receive exactly what the
program sends out.
What Print Wizard does with its received data is discussed in other documentation.
There are two parts to setting this up. The rst is adding a printer (actually installing a
driver) . The second is setting up a Print Wizard service to watch for print jobs inbound.
We recommend using an HP PCL-5 printer driver for this. Just about any such driver will
do, but if you want it to handle color, it should be a driver for a color printer. Our most
tested driver is for an HP Color LaserJet c3505.
This is done through the “Printers And Faxes” icon in the Control Panel or the Start menu
for your Windows system. Open up this option up and follow the steps below.
b) Click "Next"
c) Select "Local printer attached to this computer" and uncheck "Automatically detect...."
d) Click "Next"
e) In "Select a port", choose "Use the following port" and see if "localhost (Standard
TCP/IP port)" is in the list. If so, use it. If not, choose "Create a new port" and select
"Standard TCP/IP port".
f) Click "Next"
very tight security restrictions will not recognize or resolve the name "localhost".
h) Click "Next". There will be a delay while the wizard probes for "localhost" information.
i) Additional port information needs to be set for "Custom" and then select "Settings".
j) Set Protocol to "Raw" or "LPR" as desired. We recommend "LPR" (see above). If you use
k) Click "OK".
l) Click "Next".
o) Click “Next”.
p) Name your printer, but DO NOT make it your default printer, click “No”.
q) Click “Next”.
r) You do not need to make the printer shared as the Windows service for local TCP/IP
printers will already have the printer shared. Simply click “Next”.
t) You will receive the nal printer status page. Simply click “Finish”.
d) Click "Add", make up a name for the service, and click "OK".
f) Place a checkmark in "Allow user interaction". This will better help you analyze what's
going on.
h) If you chose "Listen" as your service type, you will probably not change anything here. If
you chose "LPD", add a queue name, the same as that used on the Windows side above
(we used "Q1"). Make sure it is checkmarked.
i) If you chose "Listen", go to the "Printing" tab and select the printer you want Print
Wizard to print on. If you chose "LPD" go to the properties of the queue, click the "Action
to take" tab, and choose your destination printer. In either case do not choose the printer
driver you installed in the steps above.
j) Click "OK" as necessary to get back to the "Print Wizard User Interface" screen.
k) Go to the Tools menu, then "Foreground service wizard". Select your service name, and
step through until you get it to run. You should see the service ash on the screen, then
move to the "noti cation tray" in the lower right.
You might get a message complaining about a rewall blocking the port. This will be a
software rewall running in your Windows. Depending on what software that is, you may
need to "open a port" (such as 515 for LPR/LPD, or 9100 for raw/listen) and/or enable a
program (such as "pwlpd.exe" or "pwlisten.exe"). Or you might want to temporarily turn
o your rewall.
Right-click on the icon in the tray, and select "Restore". This will bring the service
back to the main screen, allowing you to see if it actually receives a print job.
In PWUI, in the View menu, turn on Debug and Logging. this will give more
information about what's happening inside the service's window, inside the engine's
window, and in the log le. You can view the log le at any time by going to PWUI's
View menu and selecting View Log.
pro le (a set of con guration settings). If using raw/listen, connect the service to the
pro le. If using LPR/LPD, connect the queue to the pro le.
When everything is working well, turn o Debug.
For permanent background operation, run the service as a Windows service instead
of a foreground service.
The following diagram may help you understand the concepts behind localhost printing.
The important thing to remember is there are two printer drivers involved, as well as Print
Wizard. The type and capabilities of the printer driver must be compatible to interact
properly.
Related Topics
Print Wizard(/taxonomy/term/52)