Printing Escape codes to a printer

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to send printer specific escape codes a printer for a POS register. Can anyone tell me how to send these codes to a printer using VB .NET and the Win32 spooler functions? I have looked at the MS article 322090 on how to do this but the supplied code doesn't work for the second button. Please let me know if there are any other resources on Windows printing. It would be greatly apreciated. Thanks for any and all help.
 
Hi,
I have looked at the MS article 322090 on how to do this but the supplied
code doesn't work for the second button.
<<

What do you mean, "second button?" Does this refer to a specific command
that you must issue to the printer?

When I do this, I bypass the spooler and write directly to the printer IO
port (much faster than using the spooler). I use the DriverLinx PortIO
driver (free, but requires registration with SST). I have VB6 code that
does this, and I've though of porting it to .NET (this is an hour or two of
work that I haven't had time for).

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
 
Back
Top