While much of the home crowd (and younger crowd) using computers these days may not be familiar with the "parallel port", it is still a common interface used with many older printers in business. It is also referred to as the IEEE 1284 interface. The connection on the computer end normally has a DB25F connector while the printer has a Centronics-36F connector as in the pictures below.

Fewer desktop computers built in the last few years, and rarely laptops, nor nettops include the parallel port interface. As computers got smaller, old legacy interfaces have been eliminated to save space, in favor of faster interfaces such as USB (universal serial bus). Most printers built today include a USB interface, and may also include a wired network or wireless network interface.

While many of you might suggest just getting a new printer, there are still many business and retail POS (Point-of-Sale) systems that still utilize and rely on parallel-interface printers such as the Okidata dot-matrix printers, various thermal printers, and some sturdy HP LaserJet models.
As strange as it may sound to some, it is still possible to buy brand new Okidata ML320 9-pin dot-matrix printers, a standard in many industries, where the use of continuous or multi-part forms is a requirement. The current versions of these printers typically include both parallel and USB interfaces so physically connecting them to a modern PC is generally not an issue.
The problem I did run into recently was being able to find a PCI parallel port card for a desktop computer. Finding such a card these days at the retail level is unlikely, so eBay probably becomes a good source for this type of item. Of course this won't help you with a laptop or nettop which don't have room for such an interface.
What I did find was a Centronics 36-pin parallel printer to USB adapter. Though this is a bit of a specialty item, you might find them in your local computer store, but certainly easily found on eBay very inexpensively.

It works simply enough. Connect the big end to your parallel interface printer, and plug the small end into an available USB port on your computer. Windows 7, Vista, or XP should instantly recognize the new hardware device.


Depending on the printer you may still need to complete the setup of the new printer via Control Panel > Devices and Printers > Add a printer. Follow through with my example.

Select to Add a Local Printer and select the appropriate USB Port. Although not obvious on the outside, or even within Windows, each USB port is numbered internally, so it will be important to always use the same USB port for this printer. Actually this rule really applies to any USB printer.


Add a Share Name for this printer to be used in a subsequent step.


If you plan to share this printer with other computers within your workgroup you need to turn on File and Printer Sharing. Go to Control Panel > Network and Sharing Center > Advanced sharing settings > File and printer sharing > Turn on file and printer sharing.

Now you have a working parallel printer accessible from any Windows application. But what about your old DOS application?
DOS predated USB ports, so most DOS applications will only permit LPT1, LPT2, and LPT3, etc. While your DOS application should run in a Command prompt (CMD) Window, it still wants to access printer ports directly. For this we will use a little network redirection tip. In this example, our DOS program is configured to print to LPT2.
The following command will redirect LPT2 output to the Printer Share Name Okidata. At a CMD prompt enter the command:
net use LPT2 \\%computername%\printer-share-name /persistent:yes

Note: To remove this assignment, enter the following at a CMD prompt:
net use LPT2 /delete
Start your DOS program. Print to LPT2 and your output will be directed to the USB printer. Remember it is important to always use the same USB port for this printer. The only problem I encountered was after a system restart. The printer should be turned on when Windows is restarted to ensure that the "network redirection" takes effect.
Update: January 29, 2011
Another reader, Mark, recently wrote and raised a good question about connecting a parallel-port security key (aka dongle) similar to the SentinelPro dongle shown below. These devices were popular with expensive CAD software and POS systems, but in recent years these security keys have been replaced with USB dongles. You may be quite satisfied using an older version of software without having to upgrade to the more expensive current version. In other situations, the software company is out of business yet you are required to keep using the software but now need to replace the computer hardware.

The risk is quite high when having to use any dongle -- it could stop working, it could be stolen, or in the case of parallel port dongles, it may be difficult to migrate to new hardware (planned or required). I sought a way to circumvent the hardware dongle for one of my clients. This was not an issue of getting around licensing, but for protecting the investment in the software and ensuring that we could continue using the software regardless of the hardware issues.
I found a company called SafeKey International located in Manitoba, Canada. After reviewing their site you can contact Robert by email at sales@safe-key.com or by phone at (204)669-4639 with a description of the software in use and the equipment involved. SafeKey has been successful with just about every type of parallel port dongle.
SafeKey provides a program (on their site) that will read the contents of your dongle. They then provide a custom driver or small TSR program that your simply start before your protected software and the SafeKey software emulates the hardware dongle. The product they provided my client has worked seamlessly under Windows 2000, XP, Vista, and Windows 7, and without a parallel port present -- no dongle needs to be attached. We put the original dongle away for safe-keeping.
The solution for you will depend on the software you are running and the type of dongle in use. I would be interested in hearing of any solutions other readers find.
--MLJ
7 comments:
Hi MLJ, Thanks for the post. After completing the steps, i have problems printing through DOS. I could see the job in the queue as "local downlevel document" and it went through. but nothing came out of the printer.
The printer works fine from any non-DOS based applications. Any suggestions greatly appreciated. Thanks.
Chiem,
Remember that your DOS application must directly support your printer model from within the application as the DOS application will not use the Windows drivers for printing?
Can you please provide some more information about your configuration, including which version of Windows you are using, the printer type, which port you are using to print to, and what DOS application you are using. Are you using a parallel port printer connected directly, a conversion cable as mentioned in this article, or a USB printer.
If you like, you can reply directly to me at mlj@windows7inthenews.com and I will be glad to try and help you solve your problem.
i have old dot matrix printer , i've tried to connect it my laptop using windows 7(32bit),i connect it thru lpt to usb cable , when i connect it first screen shows 'installing device driver software' & then it shows device driver not installed correctly & might not work properly.
now what should i do kindly suggest
thx
varun
Varun,
I have a couple suggestions for you. In my experience some of these parallel to USB adapters simply don't work. Either try the adapter on a different computer or try a different brand of adapter to confirm this.
Try plugging the adapter into a different USB port. Even with no printer attached Windows should recognize the "device". If it doesn't, this could indicate a faulty adapter or a Windows issue. Check the Device Manager and uninstall the failed entry and try again. Also check the Event Log for any clues.
MLJ
I have a Okidata Microline 320 Turbo attached to a Win7 PC via a parallel-USB adapter. It is working fine. I am trying to shared the printer with another Win7 PC. Both Win7 PCs have the output set to TEXT. The 2nd PC see the printer and can print to it but the info printer as mixed graphics and characters rather then text. I have tried attaching the printer to the 2nd Win7 and the results are the same. Suggestions
I am assuming you are saying that when you attach the printer to the 2nd Win7 machine that the printing is also incorrect (perhaps garbled -- you say mixed graphics and characters) which suggests the issue is with that machine and not the printer configuration or network setup.
In my experience I have always left the Printer Properties : Advanced : Print Processor set to winprint : Raw. Have you tried this configuration?
What version of Windows 7 are you running on both machines? 32-bit or 64-bit?
Feel free to contact me directly at mlj@pcfixup.ca and I would be glad to try and work this through with you.
MLJ
Both Win7 PCs are 64 bit HP purchased in May 2011, all updates were applied at that time. I am not at their location and they are on an isolated P2P network.
I will check the setting next week and leave a follow up.
THanks for the quick response.
Post a Comment
Comments and suggestions are welcome. If you are having specific problems, please provide enough details for us to followup with possible solutions.