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

Printing Styles in Foxpro 2.6

Status
Not open for further replies.

girish

Programmer
Oct 24, 2000
6
IN
How do I print Superscript/Subscript,bold,italic,underline etc. in foxpro 2.6.
 
But; I am talking about foxpro 2.6 for Dos; in which I remember that we can print bold,underline,superscript, subscript etc. using escape sequence like chr(27)+???
Please guide me in that sense.
Thanks & regards.
 
If you do a search for "DOS printer codes" in this forum, you'll find numerous threads which have already addressesd this issue.

FPD26a DOS + Fonts + Big caracters
thread182-559618

Landscape Reports
thread182-641890

Printer Control Codes
thread182-989305

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


-Dave Summers-
[cheers]
Even more Fox stuff at:
 
Thanks you sir. But sorry to state that none of the above link/sources helped me to resolve my prob. I want clear cut/straight forward code for printing :
1. Bold 2. Underline 3.Italics 4.Superscript 5.Subscript etc.
I am using Wipro's (P-1000 Model 1000 LPM) Line Matrix Printer.
Please favour me again.
Regards
 
I beg to differ. Those links provide straightforward code.
For instance, to print bold for the LX80:
Code:
???CHR(27) + CHR(69) + "Some Text" + ;
   CHR(27) + CHR(70)
You will have to determine what codes are required for your particular printer and apply them.
If you are using a report form instead of printing one line at a time, you add a field with those codes in it before and after the text you want displayed.

There's a file in the foxpro\GOODIES folder named "PDRIVERS".
It has a lot of printer codes in it. You can use it as an example for your codes.

-Dave Summers-
[cheers]
Even more Fox stuff at:
 
Although most printers have by now 'standardized' to work with generic Epson Programming Command Language (PCL), not all have done so.

"I am using Wipro's (P-1000 Model 1000 LPM) Line Matrix Printer"

Have you contacted your printer manufacturer or looked at their website to see what PCL commands they are using?

"I want clear cut/straight forward code for printing"

I agree with Dave above, you can't get more clear & straight forward than the suggestions provided in the links that he offered.

If your specific printer does not support those specific codes, you can modify the code once you get the correct PCL commands.

Good Luck,





JRB-Bldr
VisionQuest Consulting
Business Analyst & CIO Consulting Services
CIOServices@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top