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 Page Lines

Former Member
0 Kudos

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

Former Member
0 Kudos

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

7 REPLIES 7

Former Member
0 Kudos

Hi

Click the PAGE PROTECTION checkbox in the attributes for this.

reward if sueful

regards,

ANJI

0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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

former_member15255
Active Participant
0 Kudos

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

0 Kudos

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

...