Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change the font and fontsize
Message
From
08/11/2003 17:20:42
 
 
To
08/11/2003 13:35:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00847959
Message ID:
00847983
Views:
19
How are you printing the memo field? Are you printing it via a vfp report or via ?? or @...say commands to the printer? If the latter, you can certainly change the fontsize a couple of ways. One way is to send the printers escape sequence for that font size to the printer with something like the following for an HP LJ II printer:
CODE = ""
ESC = CHR(27)
*10 pitch
CODE = ESC + "(p10H"
??? Code
*12 pitch
CODE = ESC + "(p12H"
??? Code
* condensed
CODE = ESC + "(p16.66H"
??? Code
Those codes are available in the printer manual or online and are specific to the printer make and model. Or you can use the following command in VFP:
SET PRINTER FONT 'Arial',8
SET PRINTER FONT 'Courier New',10
>Hi,
>
>Could somebody help me with this one ? My program is running under the standard vfp font. But there is a file that contains memo fields that can be printed on demand by the user.
>
>Is it possible to change the font of the momo field when printed ? In the vfp help i only find information how to get information about the active font. But i don't find how i can change the font type for an output to the printer and reset the font to the standard font.
>
>Can sombody help me ?
>
>Thnx
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform