Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Print smartform on different paper size automatically

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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