0

I need to set the page number of the report I have generated dynamically.

For that I have used a text Object and pass the page number when loading data.For an example if I passed 55, page number text Object will display it as 55.

My problem is if the report continues to 2nd page the page numbering format need to be changed. If the page number I have passed is 55, and if the page continues to 2 pages, then page 1 should be 55A, page 2 should be 55B.

How can I do it?

Because I am unable to identify whether the page continues to a 2nd page.

1
  • Does 55 come from a parameter, as craig's code suggests? Sep 13, 2011 at 14:46

1 Answer 1

0

This approach might work:

Create a formula named 'repeated':

//{@repeated}
WhilePrintingRecords;
If InRepeatedGroupHeader Then True Else False;

Place this field in the group header (whatever group causes a 'spill over') and suppress it.

Create a formula named 'page number:

//{@page number}
WhilePrintingRecords;
If {@repeated}=True Then
  //logic to append 
  ToText({?page number parameter),"#") + ' continued'
Else
  ToText({?page number parameter},"#")

Place field in Page Footer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.