‎2007 Jun 23 7:33 AM
hi friends,
i am having header and item data in a script. for header data i used variabe window and for item i used main window .
my output is like this.
H1(Header)
I11 (Item)
I12
I13
H2
I21
I22
H3
I31
I32
........
........
H9
I91
I92
I93
i want insert a page break so that each header data is on a new page. This will make script more clear for this i used NEW-Page Command but the main problem is that for 9 header it generate 10 pages in that last entry H9 is showing on 9 and 10 page and main window entry on last page(page - 10 ) is blank now i want only 9 pages to be generate for H9 header data.
actually main problem is that one extra page is generated and there Header entry is repeated so how to solve this problem.
thanks in advance.
regards,
Bhaskar
‎2007 Jun 23 11:57 AM
Dear bhaskar,
use function 'START_FORM' and 'END_FORM' . After coding start form write all the detail item and at end of item use end form. again start startform and do so on. it will make break as per your requirement.
Thanks.
‎2007 Jun 23 1:13 PM
hi,
once you check any blank lines before NEW-PAGE control command.
<b>take care that there are no blank lines immediatly before a NEW-PAGE command,if an implicit page break occurs with the blank lines and unexpected blank page may be printed.</b>
and also place the last window header data in PROTECT and ENDPROTECT control command.
regards,
Ashok Reddy
‎2007 Jun 23 1:50 PM
you can use at end of command in print program or use control_form FM ,pass here new-page ,so that it will trigger.
Thanks
Seshu