Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Controlling Generic Printer Driver in FPW 2.6
Message
De
18/10/2001 10:57:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
18/10/2001 10:45:57
Gerald McKinsey
Keystone Consulting Services, Inc.
Yorktown, Indiana, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00570257
Message ID:
00570265
Vues:
22
>Hello All,
>
> We need a way to control the Dot Matrix printer settings when using the Generic DOS Text printer driver that loads with Windows. What we are trying to do is to control the page length . We have a form created using the report writer that is 24 lines long.
>
> We thought that we could change the form length through the program by passing printer codes to the printer. We need to a page lenght of other that 66 lines.
>
>Any help we can get would be appreciated.
>
>
>
>Tim Wilson
>Programmer

Instead of using the Generic DOS Text Printer, I send a text-file (preceded by special printer codes) directly to the printer with "???".

For Epson dot-matrix printers, the code for page-length is (assuming you want 66 lines per page): chr(27) + "C" + chr(66)

For other page-lengths, substitute the number in the last chr().

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform