PageCount ReportBook in C#

1 Answer 21 Views
.NET Framework Report Book Report Viewer - WPF
Benedikt
Top achievements
Rank 3
Iron
Iron
Iron
Benedikt asked on 08 Nov 2021, 07:00 PM

Hi guys,

I currently have a problem with the PageCount in a very specific situation.

I have a Report made in the Visual Studio Designer. This Report has a different Subreport based on a Parameter.
This Report is in a ReportBook in these variants with different parameters.

And this ReportBook is displayed in a ReportViewer.

Now the PageCount isn't always correct.
With always I mean, some versions of the Report have the correct number, some don't.

If the Report is not in the Book, the PageCount is correct.
If I try the same with a ReportBook in the Standalone Designer, it is also correct.

The PageNumberingStyle is set to ResetNumberingAndCount, so that can't be any problem.

Since it's a big C# project with Database connections, it's hard to give the whole code and just some snippets aren't relly informative.

But has anyone any idea what could help or how I could count the pages without the build in function?

Greetings Benedikt

1 Answer, 1 is accepted

Sort by
0
Accepted
Benedikt
Top achievements
Rank 3
Iron
Iron
Iron
answered on 10 Nov 2021, 07:31 AM
Solved it myself. had to set ResetNumberingAndCount on a few Subreports too.
Tags
.NET Framework Report Book Report Viewer - WPF
Asked by
Benedikt
Top achievements
Rank 3
Iron
Iron
Iron
Answers by
Benedikt
Top achievements
Rank 3
Iron
Iron
Iron
Share this question
or