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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printer control codes for my HP Laserjet 4L

Status
Not open for further replies.

Capri

Programmer
Aug 9, 1999
1
NL
How do I send printer control codes for my HP Laserjet to print in different fonts in my report progams in Clipper 5.0?? I plan to run the executable in DOS box of WIN 98..
 
Let's say your printer documentation says the control code for 17 cpi = &quot;&17c&quot; nad reset is &quot;&esc&quot; (look in the printer programmers documentation) and that your printer is attached to lpt1 or lpt1 is captured to a network queue.<br>
<br>
set printer to '.lpt1' // cause that's where it needs to go<br>
set device to printer // redirection<br>
set printer on // has to be on<br>
<br>
? &quot;&17c&quot; // your printer just switched to 17cpi<br>
<br>
? (the rest of your 17cpi printing - or use @ say ... )<br>
<br>
? &quot;&esc&quot; // your printer is set back to it's defaults<br>
<br>
set printer to // shoves it out to the printer<br>
set device to screen // if you want <br>
<br>
Try it out.<br>
<br>
<br>

 
Capri <br>
Don't know if you still require the LaserJet printer codes, but I have them in a dBase III database if you want them. Send me a email:<br>
<br>
Rooguy@rocketmail.com<br>
<br>
Cheers,<br>
Pete Hughes<br>
Melbourne, Au.
 
My original reply said .lpt1 - should be LPT1. instead (if your LPT1 is where you want to go and it's captured on Novell) if not ( a local printer ) just LPT1 (no period) Hope I didn't confuse you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top