We are using the HTML5 report viewer (7.2.14.127). 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:
= ReportsLibrary.Localization.GetText("en_us",
"pagenumbers"
, PageNumber, PageCount)
Which resolves down to this code:
string
.Format(
"Page {0} of {1}"
, pageNumber, pageCount);
Is this a bug or am I missing something?