Application Development and Automation 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: 
Read only

Smartform Page Lines

Former Member
0 Likes
1,087

Hi ,

I have a smartform which has a layout like

Table Header

Loop at itab and print lines

Table Header1

Loop at itab1 and print lines

I want to avoid a scenario such as where table Header1 is printed in first page

and then the contents printed in next page .

Before printing Table header1 i need to check if page lines are somewhere near end of page .. if yes i need to FORCE new-page.

How can I check if the page lines are somewhere near end of page ?

any clues?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,054

Hi,

For the first loop count the lines getting printed in some counter . Calculate the total lines your page can accomodate and deduct the already printed number of lines from the total. and loop those many times for header1 table. Here you are almost wiht hte solution.

Assign points if it solves your probelm.

-Guarang

Hi ,

I have a smartform which has a layout like

Table Header

Loop at itab and print lines

Table Header1

Loop at itab1 and print lines

I want to avoid a scenario such as where table Header1 is printed in first page

and then the contents printed in next page .

Before printing Table header1 i need to check if page lines are somewhere near end of page .. if yes i need to FORCE new-page.

How can I check if the page lines are somewhere near end of page ?

any clues?

7 REPLIES 7
Read only

Former Member
0 Likes
1,054

Hi

Click the PAGE PROTECTION checkbox in the attributes for this.

reward if sueful

regards,

ANJI

Read only

0 Likes
1,054

page-protection will protect complete table right...

its very much possible i have table header and two three lines printed in first page and rest in next.

this is acceptable

Read only

Former Member
0 Likes
1,055

Hi,

For the first loop count the lines getting printed in some counter . Calculate the total lines your page can accomodate and deduct the already printed number of lines from the total. and loop those many times for header1 table. Here you are almost wiht hte solution.

Assign points if it solves your probelm.

-Guarang

Read only

0 Likes
1,054

well i wanted to avoid this method of calculating no. of lines that can be printed on page ..

looks like this is the only way out,

thanks

Read only

former_member15255
Active Participant
0 Likes
1,054

Hi,

Click on the checkbox "Page Protection" option in the Output option of the Table

This should solve ur problem of table falling in two pages

regards

Suresh

Read only

0 Likes
1,054

thanks for replying suresh .. but page protection will move the complete table to a new page .. thats not desired ..i can have a table header with one or two lines in a page ...

but just the header on a one page and .. printing the data in new page .. may not be acceptable

...

Read only

Former Member