Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing Font Size to HP Printer
Message
 
 
To
23/12/2001 17:16:22
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00597848
Message ID:
00597868
Views:
16
Hi Paul,

You have to use '???' command to send output directly to the printer bypassing the printer driver .
??? CHR(27)+CHR(69)+CHR(27)+"(s0p16.66H"
??? Filetostr(Myfile)
You can also take a look at file #1533, file #1069, file #390 and file #9957.

>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
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform