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: 

Smartform layout: divide the page in left and right half

maksingh8
Explorer
0 Kudos

Hello Everyone,


So the requirement I have received is to populate the data in a smartform in the below described way.
The data is to be populated in main window in a table like way with a header, main and footer. The data will be dynamic in nature no way of knowing number of records.

The user want to print the data in left half of a A4 sheet(potrait) first, once left half of the page is filled the data should start filling the right half of the page. Once right side is also done next page left side to be used and then right again and so on,..

Basically it's printing two pages in a single page by dividing in into left half and right half vertically. (Like a newspaper article with 2 columns but here data will be a table form).

I am not sure how to achieve that with smartforms, so if anyone can help me with this it will be a great help.

My Knowledge in smartform: I am beginner in smartform with experience of 10-12 smartforms of midium difficulty.

All responses are much appreciated. And I hope I do make sense of the requirement without confusing anyone.

Thanks & Regards,
Mayank

1 ACCEPTED SOLUTION

Juwin
Active Contributor
0 Kudos

Your question triggered me to write this blog:

Please let me know if something is not clear.

Thanks,

Juwin

6 REPLIES 6

Juwin
Active Contributor
0 Kudos

Your question triggered me to write this blog:

Please let me know if something is not clear.

Thanks,

Juwin

0 Kudos

Hi Juwin, Thanks for your article. It really help me and I am able to get the desired result using this. There is a small problem I am facing here. If I am getting the OTF Data print preview doesn't work. But the user wants to have the print preview option for him. Can you please help me with PRINT_OTF how can I show the print preview to user?

Juwin
Active Contributor
0 Kudos

Preview can be shown to the user, using DISPLAY_OTF function module.

Thanks,

Juwin

0 Kudos

Hi Juwin,

Thanks for replying. But the preview I am getting with DISPLAT_OTF is not same as print preview we normally get. e.g. Graphics are not printing at all.

My form has one graphic image, and rest of the data is in nested tables (deep tables).

The user is asking for same preview as we get while pressing 'print preview' button.

Regards,
Mayank

Juwin
Active Contributor
0 Kudos

Works fine in my system. May be you can provide more information/ screenshots on what is happening.

Thanks,

Juwin

Former Member
0 Kudos

maybe you can use extra one or two key elements or count index for example: if index between from 1 to 8 left side and add 8 to index and 9 to 16 right side.