04-11-2007 11:57 AM
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?
04-11-2007 12:05 PM
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
04-11-2007 12:01 PM
Hi
Click the PAGE PROTECTION checkbox in the attributes for this.
reward if sueful
regards,
ANJI
04-11-2007 12:14 PM
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
04-11-2007 12:05 PM
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
04-11-2007 12:12 PM
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
04-24-2007 10:28 AM
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
04-24-2007 3:30 PM
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
...
04-24-2007 9:49 PM
Hi,
Check the following links:
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
Regards,
Bhaskar