Reset Page Number on every group break

Suppose I have Invoice A , which has 3 pages and Invoice B has 2 pages

I need to display it as Page 1 of 3, page 2 of 3 and page 3 of 3 for invoice A

and page 1 of 2 and page 2 of 2 for invoice B

I read a couple of blogs and they said use element.reset() but I didnt get it…

I think you can set value to page() method - e.g. element.page(1).

Yes I’ve tried it… didnt work. It entered an infinite loop. I guess i put the code on the wrong place.

Should i put the code here ? then maybe you can have a clear idea.

I don’t know what “here” means… Anyway, why don’t you simply look at how page() is used in existing reports?

by here, i meant ,on this particular post …

yup doing the same, i’ll look for existing reports

thank you [:D]