I do not think that you can do what you ask.
The value is Globals!TotalPagesavailable only after the report body has finished rendering, until the server knows the total number of pages in the report.
This is why an error occurs while trying to link TotalPagesin the body of the report. You can use this value only in the header or footer.
source
share