To do this, you need to use the report variables :
Go to the Report Menu from the main menu in Visual Studio, . Click Report Properties . Add a new variable named PageCount (default value is 0)
Then, inside the footer header, create one text box and set the expression below,
=Variables!PageCount.SetValue(Variables!PageCount.Value+1)
It will automatically increase for each page.
NOTE. Do not hide it from the header or footer, SetValue will not work if you hide the field, so change the font of the text field to white. (Do whatever you want, but just don't hide it. Then you can use the expression below to get the pagenumber value inside the message body.
=Variables!PageCount.Value
I took a link to this answer .
pedram
source share