‎2005 Dec 20 9:50 AM
Hi all!
I designed a smartform with 2 pages in which the footers are different for both pages.The first page is containing a table in the main area which is retrieving data dynamically and this is running into the second page as well.Now the requirement is that the 2 pages should be printed irrespective of the data is less.Right now i am getting only the first page and when the data is less.Please suggest me any solution for this.
Thanks in advance
Prasanna Kumar
‎2005 Dec 20 10:03 AM
Hi prasanna,
in the last of main area (outside the loop or table node i presume you are using) insert a command node with new page instruction.
You should condition the execution of this command only for the first page.
In this way if the data finish in the first page you will force a page break (and only for the first page).
Please remember to reward points for useful answers and to close the post when your problem is solved.
Regards, Manuel
‎2005 Dec 20 10:03 AM
Hi prasanna,
in the last of main area (outside the loop or table node i presume you are using) insert a command node with new page instruction.
You should condition the execution of this command only for the first page.
In this way if the data finish in the first page you will force a page break (and only for the first page).
Please remember to reward points for useful answers and to close the post when your problem is solved.
Regards, Manuel
‎2005 Dec 20 10:21 AM
Hi Manuel!
Can u help me out with the command to be inserted..
thanks
prasannna kUmar
‎2005 Dec 20 10:47 AM
Consider the first page:
1. at the end of the main window you should insert a command node.
2. in the command node you have just inserted check the flag "Go to new page"
3. choose the second page in the dropdown list
4. in the "Conditions" tab check the flag "Only on first page"
in this way:
- if the data do not exceed the first page you will force a new page break
- if the data exceed the first page, the normal execution is guaranteed
Regards, Manuel
‎2005 Dec 20 11:05 AM
Hi manuel
EXCELLENT!
The code is working and i can see the 2 nd page now but the problem is that i am not getting the header section of the main window in the second page.The whole main window in the second window disappeared.Please advise
Thanks a lot
Prasanna Kumar
I will be certainly awarding points to this
‎2005 Dec 20 12:43 PM
Hi manuel
EXCELLENT!
The code is working and i can see the 2 nd page now but the problem is that i am not getting the header section of the main window in the second page.The whole main window in the second window disappeared.Please advise
Thanks a lot
Prasanna Kumar
‎2005 Dec 20 12:53 PM
Hi prasanna,
sorry for the delay... i was at lunch
in which node do you have defined the header data?
i tried to use a secondary window and it is displayed in the second page
PAGE1
HEADER
HEADER_TEXT
MAIN
LOOP
NEW PAGE COMMAND
PAGE2
HEADER
HEADER_TEXT
MAIN
LOOP
NEW PAGE COMMAND
do you use a secondary window (like in this example) or do you use the header of table node (or what else?)
Regards, Manuel
‎2005 Dec 20 1:53 PM
Hi manuel!
I defined as per ur instructions,but my window is main window and not secondary.
In the main window i am defining a table again.under table main section i had coded the page break logic.Is it okay
Will i have to do this for both the pages?
Thanks for your expert help
prasanna kumar
‎2005 Dec 20 10:37 AM
Hi Prasanna Kumar,
To reolve your issue, follow the below steps:
1) Do not make table control borders as visible.
2) Use a overlap window and draw lines to design a table.
3) Arrange the borders properly.
Thanks,
Sreekanth