Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set custom paper size programatically?
Message
De
24/07/2001 14:00:30
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
How to set custom paper size programatically?
Divers
Thread ID:
00534540
Message ID:
00534540
Vues:
34
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!
A problem is a problem only as long as it has a possible solution. Lacking that, it becomes a FACT!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform