By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,899 Members | 1,066 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,899 IT Pros & Developers. It's quick & easy.

Printing Escape codes to a printer

P: n/a
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.
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.