Application Development and Automation 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: 
Read only

Page break problem in script

Former Member
0 Likes
475

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

3 REPLIES 3
Read only

Former Member
0 Likes
449

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.

Read only

Former Member
0 Likes
449

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

Read only

Former Member
0 Likes
449

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