I am trying to come up with a way (for several reports) to generate custom page numbering (just need starting page number not total pages) for a group. I have a limitation that it must work with the RunAndRender task as I am providing the reports for an application, and that application only uses the RunAndRender task.

I have been playing with the sample reports that show using the page variables and an older version that uses the group page numbering. I have been attempting different things to get the page numbers to work correctly, however, I am not able to get an accurate page number or do a calculation on the pageNumber variable when the group spans multiple pages.

My question is, is there any way to generate a page number that starts at the beginning of the group and increments until the next group? I will have to implement this on several reports, so a standard approach would be great. Also, I do NOT have access to where this is being called and run from, so I can not programmatically change anything, it must be done via the designer.

The problem is that master page content is created and render before the
content for the report when using a runandrender task, if you have have
no way of doing a look ahead. You could probably increment a counter in
the group header to do something similar.

Jason

On 11/30/2011 7:05 PM, David Johns wrote:
> I am trying to come up with a way (for several reports) to generate
> custom page numbering (just need starting page number not total pages)
> for a group. I have a limitation that it must work with the RunAndRender
> task as I am providing the reports for an application, and that
> application only uses the RunAndRender task.
>
> I have been playing with the sample reports that show using the page
> variables and an older version that uses the group page numbering. I
> have been attempting different things to get the page numbers to work
> correctly, however, I am not able to get an accurate page number or do a
> calculation on the pageNumber variable when the group spans multiple pages.
>
> My question is, is there any way to generate a page number that starts
> at the beginning of the group and increments until the next group? I
> will have to implement this on several reports, so a standard approach
> would be great. Also, I do NOT have access to where this is being called
> and run from, so I can not programmatically change anything, it must be
> done via the designer.
>
> Thanks for your help!
>
> David

I was working on setting up something in the group header, but once I am inside the group and that group spans a page, I don't know how to increment the counter. Is there something that tells me I have spanned a page inside the group so I can update the counter appropriately? That is where I am stuck.

Any help on this is appreciated.

Quote:

The problem is that master page content is created and render before the
content for the report when using a runandrender task, if you have have
no way of doing a look ahead. You could probably increment a counter in
the group header to do something similar.

Select the group in the outline view and then click on the script tab.
You will see a page break event that should work.

Jason

On 12/1/2011 11:11 AM, David Johns wrote:
> Thanks for the reply.
> I was working on setting up something in the group header, but once I am
> inside the group and that group spans a page, I don't know how to
> increment the counter. Is there something that tells me I have spanned a
> page inside the group so I can update the counter appropriately? That is
> where I am stuck.
>
> Any help on this is appreciated.
>
> Quote:
>> The problem is that master page content is created and render before
>> the content for the report when using a runandrender task, if you have
>> have no way of doing a look ahead. You could probably increment a
>> counter in the group header to do something similar.
>>
>> Jason
>