dynammic main window
im developing PO smartform.in this im able to display 6 items in the mainwindow(as per the dimensions of the main window) and from the 7th item it's going to the next page and below that footer is printing.my user wants all the items should come on first page and if there are any items left then they should go to next page
and then footer should print.for example,if there are 20 items,in my case only 6 items will print in 1st page and remaining items wil go to next page and then footer wil print.he wants the entire page should be filled with items and if any items then only next page and then footer.
if there are only 4 items everything should come on first page including footer.please suggest is it possible to vary the length of the mainwindow depending on the no. of items,how can i solve this issue.