Usually we do what one of your links mentions. That is, install the printer under Windows on any port that it wants to install on its own (for example, USB, etc.).
Next, share the printer (say, the workstation is called COMPUTER1, and your share is HPPRINTER).
Next, create a batch file to run the application, it should look something like this:
net use lpt1 /d net use lpt1 \\COMPUTER1\HPPRINTER <yourapp.exe>
In your application, set the output to LPT1.
There are other, more complex solutions, but this is by far the simplest. We still have a DOS application that was built many years ago, and we are still actively selling and selling. This is how we handle printing. It works very well. You also get the added benefit of using Windows to queue your print jobs so that you can pause the queue for the printer, etc. The printer can even be turned off or out of paper, and jobs are still in the queue in the Windows Queue Manager.
Caveat: It is assumed that the output will be supported by the new printer. If this is the โolderโ HP LaserJet, then itโs probably PCL5, just find a PCL5 compatible device and youโll leave.
In terms of filtering, I'm not sure why you need it. As long as the output is PCL or Postscript or some other standard, you can still find a printer that supports this print description language. If you have questions, just add a comment to the current device, and I can submit ideas for compatibility, as we deal with this daily.
Douglas anderson
source share