I have several multipage sub reports I inserted into separate report heading sections of the main report. These must be in separate sections beacuse some sub reports are profile orientation and some are landscape orientation.
I need to display the page number and total number of pages at the bottom of each page.
I am able to do this sucessfully with the page number. I have a shared variable for page number I set this shared variable equal to the PageNumber in the main report before inserting the subreport. In the subreport I add the subreport PageNumber to this shared variable before displaying it at the bottom of the page of the subreport.
I tried a similar method using a shared variable for TotalPageCount. In the main report I set this varialble equal to the TotalPageCount prior to inserting the subreport. When I display this shared variable at the bottom of the page of the subreport it shows the correct number of pages on page 1 but on page 2 it displays an unintialized number 4,294,96....
I do not understand why my method is OK for page number but not page count?