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 = "&17c" nad reset is "&esc" (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>
? "&17c" // your printer just switched to 17cpi<br>
<br>
? (the rest of your 17cpi printing - or use @ say ... )<br>
<br>
? "&esc" // 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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.