PrintDirect ?

J

JC

http://www.c-sharpcorner.com/Code/2002/Oct/PrintDirect.asp

There is some code on how to directly send codes to a printer. I am trying
to figure out how to different codes than what is listed here but get enough
from the sample to know at least the first part of the needed printer
control code.

I see this in the code. st1 = "\x1b*c600a6b0P\f"; with \x1b being the
escape code for the escape ascii char. So my thought pattern goes that I
should then be able to send in an <esc>G20 and set the pagesize. So I came
up with

"\x1b*G20" I don't really understand the purpose of the * but it is in all
the codes the author uses, except for the formfeeds. Mine doesn't do
anything except print the 0 for some reason. Anyone have any ideas?

thanks,
jc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top