I am exporting several grids into different sections of a report. What I am trying to determine is how to find the page number of the report, that the section will be exported into. I know you can just add page numbers to the top, but, I want to go a little further than that and create my own set of thumbnail bookmarks on the side that correspond to the pages of the grid. Its easy if each of the grids only takes up one page. But, I have several grids that take up more than more page and I see no way to determine where one grid stops and another one starts as far as page numbers are concerned. Basically I need a way to pull out the [Page #] off of the top of each section.
There is not really an easy way to do this since the reports are not generated until you actually call Publish. Take a look at this thread, which provides some suggestions on how to work around this.
-Matt