Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set custom paper size programatically?
Message
 
 
À
24/07/2001 14:00:30
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00534540
Message ID:
00534545
Vues:
12
This message has been marked as the solution to the initial question of the thread.
Try to remove the following driver related three lines:
DRIVER=winspool
DEVICE=Okidata ML320 IBM PPR
OUTPUT=LPT1:
Don't forget to blank out Tag and Tag2 fields.


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