Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set Custom Paper Size on Selected Printer???
Message
 
 
À
24/07/2001 13:59:11
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00534539
Message ID:
00534546
Vues:
13
See Thread #534540.

>If I create a report on the fly that is longer than the std 11" - a preprinted contract which may be 17" long and 8.5" wide , how do I set the printer to that page size. This has to be programatic because it is for hundreds of users. I am putting all the contract fields into the details band. I have tried stuffing the size info into the EXPR field in the FRX file and if the printer is at its default setting for custom paper the result is a report that is the correct lenght but is only .5" wide. Bad bad! My code in the EXPR field is :
>DRIVER=winspool
>DEVICE=Okidata ML320 IBM PPR
>OUTPUT=LPT1:
>ORIENTATION=0
>PAPERSIZE=256
>PAPERLENGTH=5080
>PAPERWIDTH=2159
>DEFAULTSOURCE=8
>PRINTQUALITY=120
>YRESOLUTION=144
>TTOPTION=1
>
>I think I will probably have to write an API function to set the custom paper width for the printer but dont know how. Any help will be much appreciated!
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform