I have a cursor with data sorted by Branch Number. I have a report running against this cursor which has a group on Branch Number. The group is set to start a new page and reset page number to 1 when the group changes. In the page header I have "Page " _PageNo "of" _PAGETOTAL displaying like this: Page 001 of 049 for the first group.
When I page through to page 048 of 049 and then to what should be Page 049 of 049, I get page 001 of 023 (a new group is being displayed). So the _PAGETOTAL seems to be off. Anyone ever seen this? It seems to only be showing with this particular subset of my data.
In the next group, when I reach Page 023 of 023 and then go to the next page, the group hasn't changed and I then get page 024 of 023!
Any ideas of what I can do to troubleshoot and fix this?
< later >
I found Message #
01321284 which says to use _frxlistener like this:
PUBLIC _resetpagetotal, _reportpageno, _reportpagetotal
_ResetPageTotal = 0
_ReportPageNo = 0
_ReportPageTotal = 0
lorl = NEWOBJECT('fxListener', HOME() + 'ffc\_reportlistener')
lorl.ListenerType = 1
lorl.addcollectionmember('fxResetPageTotal', '_reportlistener', '', .t., .f., .f.)
REPORT FORM (m.lcReportForm) PREVIEW OBJECT lorl
and then use _ResetPageTotal for the group page total, but that just displays as 0 in my report, so still looking for a solution short of trying to do my own calculation of page total per group.