HP Support Forums
Join in the conversation.
Search the Community
Direct transmission of HPGL to USB printer (2108 Views)
01-15-2009 05:01 PM
I have written a couple of programs using Delphi that send HPGL commands directly to the printer. That was easy when printers typically connected to the parallel port and languages typically provided a "LPT1" output device identifier. To write HPGL directely to a USB device apparently requires calls to the Win32 API. I don't have the documentation required. Do you have a "template" for by-passing the Windows spooler to write directly to a printer on a USB port?
Solved! Go to Solution.
01-19-2009 04:36 PM
I managed to solve this problem myself over the weekend. I can now send PCL5 and HPGL escape code directly to any printer regardless of whether it is connected via USB or parallel port. My code is written in Codegear (Borland) Delphi. If you would like a copy of the code, email me at email@example.com. If you are not using Delphi, you will have to translate the code snippets into what ever language you are using. The code involves making calls to the Win32 API.