Problem With PageNo
Hi,
I apologise if you are seeing this post a second time. I have not seen a
response to my initial post so I am re-posting in the event that something
went wrong with the first.
Using RB9.02, I am conditionally suppressing bands and pages in RAP for a
section subreport. The conditional value is an aggregate record value (SUM)
so I cannot exclude records through DADE which would be my preference.
In the BeforeGroupBreak event I am setting the NewPage and Visible
properties and this works perfectly such that only the expected output is
generated. Unfortunately, the Report.PageNo value is not reset on group
break so the page numbering for each group is incorrect.
If I remove the conditional NewPage setting from the BeforeGroupBreak event,
PageNo is reset on the group breaks, but of course, blank pages are
displayed.
Is there a way that I can have both the correct output generated and the
page numbers correct for each group?
--
Bob
I apologise if you are seeing this post a second time. I have not seen a
response to my initial post so I am re-posting in the event that something
went wrong with the first.
Using RB9.02, I am conditionally suppressing bands and pages in RAP for a
section subreport. The conditional value is an aggregate record value (SUM)
so I cannot exclude records through DADE which would be my preference.
In the BeforeGroupBreak event I am setting the NewPage and Visible
properties and this works perfectly such that only the expected output is
generated. Unfortunately, the Report.PageNo value is not reset on group
break so the page numbering for each group is incorrect.
If I remove the conditional NewPage setting from the BeforeGroupBreak event,
PageNo is reset on the group breaks, but of course, blank pages are
displayed.
Is there a way that I can have both the correct output generated and the
page numbers correct for each group?
--
Bob
This discussion has been closed.
Comments
Sorry for the delay.
I would guess that this is a timing issue. The NewPage property is being
set after ReportBuilder determines whether it needs to reset the page number
or not. I will research this further and get back to you if there is a fix
I can make. Meanwhile, I would recommend manually keeping track of the
group page number perhaps using a TppVariable to display. Each time you
call NewPage, you could reset the value manually.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com