Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing Font Size to HP Printer
Message
De
23/12/2001 17:16:22
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Changing Font Size to HP Printer
Divers
Thread ID:
00597848
Message ID:
00597848
Vues:
44
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform