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!