Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing Font Sizes for fields in FPD2.6 Report.
Message
From
24/10/2006 15:00:11
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
24/10/2006 14:48:16
Dave Nantais
Light speed database solutions
Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
01164157
Message ID:
01164166
Views:
9
This message has been marked as a message which has helped to the initial question of the thread.
>Can I modify the font sizes for "Text" boxes adn "Field.." boxes in a Foxpro for DOS 2.6 report?

If you're running it from FPD2.6, you may mark them as condensed and make sure to have the printer driver loaded (check _pdriver system variable, and the pdriver array, or whatever it's called, I remember only that it has 51 element).

If you don't want to play with the printer driver, then you can embed escape sequences in the report... like this:
*-- prg which runs the report

esc=chr(27)
esBoldOn=esc+"B1"    && this is not the real sequence - I forgot them
esBoldOff=esc+"B0"   && IOW, these are just examples
es15cpi=chr(18)
es10cpi=chr(15)
report form myreport to printer
And in your report you should insert textboxes where you'd print these variables. Keep in mind that they will not advance the print head, but will have to consume some width on your report - so anything to the right of, say, esBoldOn would have to be shifted three characters to the right etc etc.

Not hard, but cumbersome, boring and I hated to maintain those.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform