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

Bokd, Itallic, Underline and Fontsize Setting in Foxpro for Dos ?

Status
Not open for further replies.

brajpatel

Programmer
Apr 21, 2003
1
IN
Hello,
Please acknowledge that how can i set the subject matter in forxpro for dos. I want to set this subject on to printer when i get started my printouts. I know but i don't have exact command for these purpurpose.

The Command Is :

CHR()

Thanking you
 
One of the most common methods of doing most of what you describe is to use the specific printer's Programming Command Language (PCL).

This approach is consistent with your suggested CHR(xxx) method.

By sending the proper command strings to the printer prior to sending the text, you can control many printing properties - Condensed Font, Bold Font, etc.

Many dot-matrix printers use the old Epson FX-80 PCL as a "generic" standard, but some do not. You would need to check with your printer's manufacturer and/or its manuals to know for certain.

Once you have determined the appropriate and necessary PCL strings you can send them to the printer with either the
???CHR(xxx)
method directly in your code or by calling a function to send them.

Good Luck,


JRB-Bldr
VisionQuest Consulting
Business Analyst & CIO Consulting Services
CIOServices@yahoo.com
 
Any idea where I can get a list of these 'generic' escape codes for the FX-80?

Many thanks,
Alan Harris-Reid
 
Start Bold Printing:{27}{69}
Stop Bold Printing: {27}{70}


Start Double Wide Printing (40 columns/line): {27}{87}{1}
Stop Double Wide Printing: {27}{87}{0}

Start Condensed Print 132 columns/line: {15}
Stop Codened print: (18)

With a Chr before each command. I store them in a control file and use them as needed. You can get more examples in the manual of any dot matrix printer.


 
MBSCSI, thanks for the reply. The codes you provide are a great start, but I would like the full list of escape codes for an Epson FX-80, for which I don't have the manual. Any idea where else I could find these codes?

Many thanks,
Alan

 
I'll take a look at my old printer manuals and get back to you ina day or so. If I have one, I can e-mail or fax you. I am new to this forum and I do not know if you have private messages. I hate to put my e-mail address in a forum like this as spammers sacn sites and mine the info..
 
The best is visit (if you need epson esc sequence)And goto driver, select the model, user manual(documentation).

Most of the manufacturer have the drivers and documentation on the web. This is true for many printers in the market.

Nasib Kalsi
Try It.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top