Printer codes using VB on Dot Matrix printer?

February 8, 2011 at 23:38:32
Specs: Windows 7
Can anyone help me how to use printer codes using VB on Dot matrix printer? I am having trouble with my program. i wanted to make some parts of my printout size as CONDENSE to make it fit in a portrait bond paper..

See More: Printer codes using VB on Dot Matrix printer?

Report •

February 9, 2011 at 02:12:40
To control a dot matrix printer you need to embed orders inside the printing stream. There are two main printing languages for dot matrix printers, IBM Proprinter mode and Epson ESC/P mode. Here the ESC/P codes:

0Fh to activate comp and 12h to deactivate.

As an example if you want to compress the string Hello World you have to send to the printer

0FhHello World12h

where 0Fh and 12h are the symbolic for bytes holding the hex control code (in the example just one byte as prefix and one as suffix).

What I posted works for a printer supporting ESC/P, sorry but I do not have on hand the IBM Proprinter equivalent codes.

Report •

February 9, 2011 at 03:40:15
Similar codes can be embedded for output to HP PCL compatible printers (mostly laser).

Report •

February 25, 2011 at 02:09:07
how we can print fast on do matrix with vfp

Report •
Related Solutions

Ask Question