Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to set Custom Paper Size on Selected Printer???
Message
From
24/07/2001 13:59:11
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
How to set Custom Paper Size on Selected Printer???
Miscellaneous
Thread ID:
00534539
Message ID:
00534539
Views:
44
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!
A problem is a problem only as long as it has a possible solution. Lacking that, it becomes a FACT!
Next
Reply
Map
View

Click here to load this message in the networking platform