Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing from DOS program 17cpi,printer prints 10cpi

Status
Not open for further replies.

maddmaxx11

Technical User
Apr 30, 2004
2
US
Hope someone can point me in the right direction, I have a DOS program that prints to to LPT1 port it prints at 17cpi the laser printer prints it at 10cpi, Can this be resolved if so can you help me with how to resolve issue.

Thanks,
James
 
<esc>(s0p16.67H

that is a zero after the s


Jim Asman
jlasman@telus.net
 
Jim,

Thanks for taking time for this. I don't understand <esc>(s0p16.67H where do I go to put this command and will it always from that point on be set for that command. If you could give me specfic instruction on the procedure to insert the command.

Thanks,
James


 
The command needs to be inserted at the very beginng of the print job, after any reset that may exist. It will stay in effect until you explicitly give another pitch command or the printer receives a reset command.

Note that the <esc> is the single byte chr(27)

How you enter that will vary from one text editor to another. You will have to check the help for the editor to see what mechanism is available to enter "special" characters into the file.

That is chr 27 in decimal, 033 in octal, or 1B in hex.

More than likely, the decimal value is the one your DOS editor will want.

Jim Asman
jlasman@telus.net
 
FYI some older LaserJets would only print compressed print
(16.66CPI) if a Cartridge or SoftFont containing it was
installed. That omission was quickly fixed by HP and others
using PCL.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top