08-01-2007 10:14 AM
Hi All,
I have a requirement to automatically print the same smartform on different paper sizes based on criteria in a cusom table. Has anyone come across this? Is this possible to do?
I will have different paper size for each order type in the custom table and the print program has to decide which paper size the form has to be printed based on the order type and fire the print.
output_options does not have a parameter for page format. How to acheive this functionality? Any pointers would be of great help.
Thanks in advance.
Regards,
Naresh
08-01-2007 10:20 AM
Hi
I dont think you can vary the paper size dynamically, because, we specify the dimensions at the header level for the smartform (<b>Global Settings -> Form Attributes -> Output options</b>).
Regards
Raj
08-01-2007 10:24 AM
Hi
Configure the printers such that different printers print the different size of papers
So when we execute the output from the application document
there is an option to select the different LOGICAL DESTINATION(printer),so depending on the size we select the printer and issue the output such that that particular printer prints a special size assigned to it.
<b>Reward points for useful Answers</b>
Regards
Anji
08-01-2007 10:29 AM
Hi Naresh,
Logically if I want to print in different paper sizes I will create different smartforms,
since the layout may not fit smaller paper sizes.
You may add a new column in the custom table to put your smartform name so the program will choose suitable smartforms.
e.g.:
ORDERTYPE PAPERSIZE SMARTFORMS
Z000 DINA4 ZORDER_DINA4
Z001 DINA3 ZORDER_DINA3
Note:
To minimize maintain effort you can put all your codes in a single output program and use smartforms only for layout.
Regards,
Hendy
08-01-2007 10:43 AM
Hi Anji and Hendy,
Thanks for your responses. There is a paper size called ANY which makes me wonder if printing the same form is possible on different physical sizes of paper.
Otherwise I will follow what Hendy has suggested.
Thanks!
Regards,
Naresh