cancel
Showing results for 
Search instead for 
Did you mean: 

Printing in Different PAGE FORMATS

SrihariNerella
Participant
0 Kudos

Hi,

I am working on Smartform. I facing problem in printing two different page formats.

In form Lastpage is Fixed .If data contains in only in page1 then it will display like Page1/Last.

If data exceeds the mainwindow then it will display like Page1 / page2 / Last .

I am using Command statement after Mainwindow But it is giving Last Page when data contains in Page2 If it contains in Page1 then it is not printing .

Example : Page1 / Last page.

page1 / Page2 / Lastpage.

Page1 nextpage is Page2.

Page2 Nextpage is Last .

Regards

Nandan.N

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

Change the next page of page2.

the sequence should like below,

page == next page

page1 == page2

page2 == page2

lastpage == lastpage

Now give the lastpage in the command statement and put the condition after the main page.

Hope this helps you

Regards,

SachinkumarMehta

SrihariNerella
Participant
0 Kudos

Dear colleagues,

i have found the solution:

i created a folder as the last element in the main-window of the

first page and the next page.

After not under, i created a command note.

In the page terms the main window is not process but the

other types are processed!!!

Kind regards

Nandan.N

Former Member
0 Kudos

Hi,

For that do the following steps.

1) Keep the next page of page1 as PAGE2.

2) Keep the next page of PAGE2 as PAGE2.

3) Keep a counter(lcount) in the table from which you are printing the data and keep incrementing it for every loop pass.

4) Before looping the table use describe table statement to get the number of records present in that internal table and store in another variable(rcount).

5) Then right click on the table footer and there create a COMMAND and there in the condiitons give as

rcount = lcount.

so because of that the data will print properly and when once all the data is over the command will be triggered and it will automatically go to the last page.

Regards

satish