Building a Table of Contents (TOC)
If I have a report that holds unlimited number of subreports that were programmatically added, how is the best way to determine the page number in the master report of the first page of each subreport?
I will then build a string containing the report name and first page for each subreport ...then stuff this into a parameter on the main report which will be used to display a table of contents.
If there is a better way, please let me know... but I am not sure how to read where the first page number falls on each subreport inside the main report. If I knew the subreports GetLastPageNumber, I may be able to calculate it... but I was not sure how to get this property on the subreport. It does not appear to be a property of the subreport ReportDocument object.