Link to home
Start Free TrialLog in
Avatar of fox-ravi
fox-ravi

asked on

How to print 20cpi in dot matrix printers

We very well know chr(15)+text will print 15 cpi in dot matrix printers. But how to print 20 cpi ? What is the escape seq, to be sent. Iam using foxpro for dos and I need a tip to print the 20 cpi in dotmatrix printers.
Avatar of CarlWarner
CarlWarner
Flag of United States of America image

What kind of dot matrix printer?
Assuming it's an Epson or works in Epson emulation mode:

Some commonly used escape codes include (in decimal values)
- Reset (27, 64); Set page length in lines (27, 67, n - where n is a number from 1 to 127); Carriage return (13); Line feed (10); Form feed (12); Select 1/8-inch line spacing (27, 48); 10 cpi (27, 80); 12 cpi (27, 77); Select bold font (27, 69); Cancel bold font (27, 70); Select italic font (27, 52); Cancel italic font (27, 53); Turn underline on/off (27, 45, n - where n equals 49=ON or 48=OFF); Select condensed print (15); Cancel condensed print (18). For more escape codes, please refer to the Command Summary of your User's Manual. If you need to use advanced escape codes for programming purposes, you can purchase an ESC/P Reference Manual from The EPSON Store.
ASKER CERTIFIED SOLUTION
Avatar of CarlWarner
CarlWarner
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fox-ravi
fox-ravi

ASKER

Yes.. But is there any single escape sequance to convert to direct 20 cpi.

Thanks

Ravi
No, there is not a single sequence in this case.

It's just the way they do it.