There seems to be a bug with the latest 13.2 reporting dlls.
This exception is now thrown for code that previously worked fine:
"The page number is bigger than the totally page count in the sections.
Parameter name: pageNumber"
A converter is used in a footer for the page number but even commenting that out the error is still thrown when the preview is called:
xamPreview.GeneratePreview(report, false, true);
Any ideas?
Hi,
I have been looking into your post and it seems that you use our WPF Reporting. I tested the reported method with the latest ServiceRelease for our WPF controls(13.2.20132.2005) and it seems that everything goes right. I am attaching the sample application(WPFReportingIssue.zip) that I have used for my tests.
Could please try to modify it in order to reproduce the use that you are having ?
Looking forward to hearing from you.
I am not able to recreate it easily with an example...it only happens after several pages of a many page report. Each page with a header and footer and a section (UIElement) on each page. For me it occurs at page 3 of an 8 page report. There is pagination event checking to get grids formatted just so. So it is quite complex.
There are also lots of page variables that appear with that in the report object fed to the preview... Logical/physical etc so I can't readily see an obvious mismatch. It seems to go through the page number converter multiple times even tho its only on the footer per page. Totally worked fine with previous version. Can you please check what changes you made around that specific error message? In the meantime I will keep trying to recreate it with the sample.