Application Development 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: 

Smart Form Page Numbering Issue

Former Member
0 Kudos
94

Dear Friends

I have Smartform with two loops

1st loop with page break

Suppose in 1st loop there are 3 records

1nd loop there are more than 300 records

when it runs it gives 30 pages

if i use system page numbers it give 1 of 30, 2 of 30 ......

but i want to reset page numbers against 1st loop

like 1 of 6, 2 of 6 , 3 of 6.....

1 of 14, 2 of 14, 3 of 14.....

1 of 10, 2 of 10, 3 of 10......

can you please give some idea to solve this problem

Hope you can understand what i say

Thanks in Advance

7 REPLIES 7

Former Member
0 Kudos
56

Hi

I don't think u can manage it in the smartforms, but out the smartform: in the program calling the smartform.

U should call the smartform as soon as a new document has to be printed: so the first loop should be out of smartform.

Max

Former Member
0 Kudos
56

Hi,

try using sfsy-formpages .

Former Member
0 Kudos
56

Hi!

You can store the number of the first table into a global variable (30).

Then you can subtract this number from the actual page number during printing the second table.

Regards

Tamá

Former Member
0 Kudos
56

HI ,

TRY THIS.

<SFSY-PAGNO>OF<SFSY-FORMPAGES>

Former Member
0 Kudos
56

Dear Friends

Still in Same Problem

Calling Program its possible, but problem is user have to select printer so many times

can i handle that issue?

Former Member
0 Kudos
56

hi gurus!

has anyone found a fix for this issue? i'm currently experiencing the same issue and would like to know how i can fix this..

i have a smartform that generate 2 reports, the first one has 3 pages, and the second one has 2 pages.. so the print out has a total of 5 pages.. for each of the pages i placed a Page # of #.

1 - Page 1 of 2

2 - Page 2 of 2

3 - Page 3 of 2

4 - Page 1 of 2

5 - Page 2 of 2

as you can see above the numbering is incorrect. but when i run the reports seperately, i get the right numbers.. if i were to run the first report only i get,

1 - Page 1 of 3

2 - Page 2 of 3

3 - Page 3 of 3

many thanks to anyone who can help!

0 Kudos
56

Hi,

Did you fix this issue?

I am also facing the same issue,

Could you please let me know if the issue is resolved?

Thanks

NN