Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing Font Size to HP Printer
Message
From
23/12/2001 17:16:22
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Changing Font Size to HP Printer
Miscellaneous
Thread ID:
00597848
Message ID:
00597848
Views:
46
I'm converting a FPD program that has a routine to print ASCII .txt files to
a printer in two modes:

"normal" - portrait mode, 80 columns wide
"compressed" portrait mode,132 columns in a reduced font.

The VFP program prints the .txt files out after the User selects either the "normal" or "Compressed" mode.

The code used in the DOS program to change the font to "compressed" mode -
(HP LJ printer) was:

SET PRINT ON
SET CONSOLE OFF
?? CHR(27)+CHR(69)+CHR(27)+"(s0p16.66H"
SET PRINT OFF
SET CONSOLE ON
RUN COPY &MFILE LPT1:
EJECT

This works fine in FPD2.6

This doesn't work in VFP5.0a - the font does not change to "compressed
mode".

Does anyone have any suggestions on a way to change the font
(programmatically) when printing ASCII .txt files?

Thanks... Paul
Next
Reply
Map
View

Click here to load this message in the networking platform