We are using the HTML5 report viewer (22.214.171.124). To provide localization we are passing all text to used defined functions. In the footer of our reports we have the normal "Page X of Y" text.
In visual studio preview we see the proper page numbers on each page and if from Visual Studio preview I save to PDF the pdf file has the proper page numbering.
However when deployed and used through the HTML5 viewer and exporting to PDF every page has the same page number which is equal to the page count (e.g. "Page 5 of 5" on all 5 pages).
In our report the expression looks like this:
Which resolves down to this code:
Is this a bug or am I missing something?