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

Smartform-Command lines not triggering next page

Former Member
0 Likes
625

Hi friends,

I have an requirement where I need to print two line items on each pre printed page. I have used command line in my last window to call next page but it is able to trigger 2 page only not the third one.

for example... If I have no 1 to 5 items in a internal table then Item 1 to 2 on page 1, 3 to 4 on page 2 and 5 should be print on page 3 only. Here all page are same(First page only).

I used below logic to populate item data...

1) At first , just pass first two line items in table so it can print both line item on first page and command line trigger next page(PAGE 1)

2) At Second, pass third to four row only in table so  it can print both line item on first page but here command line not  triggering next page(PAGE 1)  again

Please help me

1 ACCEPTED SOLUTION
Read only

che_eky
Active Contributor
0 Likes
500

Try to move your command line to within the Main Area of your table. Have a counter which you increment at each loop pass, check this in the command line and throw a page break. Reset the counter.

More than likely having the command line in the last window rather than the main table area is causing this.

2 REPLIES 2
Read only

Former Member
0 Likes
500

Hi

i think you do not need to use break page.

just decrease the size of your main window (where you should have your table) so that only 2 lines could be printed and automatically the a page break is trigger when 2 lines are printed.

Regards

Read only

che_eky
Active Contributor
0 Likes
501

Try to move your command line to within the Main Area of your table. Have a counter which you increment at each loop pass, check this in the command line and throw a page break. Reset the counter.

More than likely having the command line in the last window rather than the main table area is causing this.