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

Problem while printing second page in smartform

Former Member
0 Likes
959

Hi Experts,

I have been caught in some strange problem.

I have an smartform, where i want to print two different pages.

I do not want to print MAIN window of first page into second page.

But i am not able to print second page.

I want to print both pages irrespective of data in main window.

It goes to second page only if data is not accoodated in first page, which i do not want.

If data is not accomodated in first page then it shoud print rifst page format only.

Then last page as second page format.

I have tried it by giving page break in command line.

But it is not working.

Hope i am making you all proper understand my question.

Thanks in advance,

Pratik Vora

8 REPLIES 8
Read only

Former Member
0 Likes
852

Hi pratik,

In your main window,

go to tab condtion and check Only after End of main window.

Regards,

Vijay

Read only

0 Likes
852

Thnaks Vijay for instant answer,

But this field is already checked.

And i am still not able to print second page correctly.

Regards,

Pratik Vora

Read only

Former Member
0 Likes
852

i guess your requirement is :

print first page.

if first page data is not sufficient in one page, continue this in the next page.

when first page content is over. print the 2nd page of the smartform.

is this what you want?

then copy first page to another page. (in smart form)

and then keep your 2nd page.

Read only

0 Likes
852

Hi Soumya,

You have got the question correctly,

But i have tried out that also, its not printing 2nd page format in this case.

Thanks,

Pratik Vora

Read only

0 Likes
852

where(which page) have you kept your main window?

and does your 1st page contains tables?

Read only

0 Likes
852

My main window is in 1st page only.....

And Only main window contains table in 1st page....

Thanks soumya for taking interest in it.

Pratik Vora

Read only

0 Likes
852

do one thing.

1st page.

keep main window for table.

in main window only keep command to trigger LAST_PAGE(your page 2)

2nd page = copy of 1st page..

keep main window for table. -


>same as 1st page

in main window only keep command to trigger LAST_PAGE(your page 2) -->same as 1st page

3rd page: (put your 2nd page here) lets say i call it LAST_PAGE

no main windows here.

this will solve your problem i guess

Read only

0 Likes
852

Thats how my smartform is currently.

The 2nd page is not getting printed at this point.

Regards,

Pratik