how do i print directly to lpt1 in vb.net

hectoraprosys
hectoraprosys used Ask the Experts™
on
I would like to know how to print directly to the printer port bypassing the windows printer manager a sample code would be greatly appreciated
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Distinguished Expert 2017
Commented:
I think you best use the printer manager or you would have to handle the communication/formating with the printer i.e. PCL5/6/UFRII/PS etc. I think your application will need to get what the printer supports and based on that information process the information prior to sending it through to the printer.

this path is full of pit falls.
using your favorite search engine look for VB access to LPT1.
You should have an object within visual studio that provides you for communication to printer/serial ports.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial