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--