hiding one page makes all pages after that to hide as well

Stimulsoft Reports.NET discussion
Post Reply
mihiri2
Posts: 43
Joined: Mon Apr 08, 2013 2:29 am

hiding one page makes all pages after that to hide as well

Post by mihiri2 »

I have a report which have several pages.
Each of those pages have a condition, if there are no data to print on those pages, then the pages are not printed.
I use datasource.count to determine if there will be any data on a certain page.

However I see that if any page is disabled, because it has no data, then all the pages after that one are disabled and not printed too regardless of whether there are any data on them or not.

I tried to use a code behind rendering method as described in http://forum.stimulsoft.com/viewtopic.p ... age#p25800, but that couldn't be used as in my case, I need to calculate the datasource.count which is not doable unless I am on that page which uses the datasource.

Please can you suggest a method to overcome this issue.

I am using Stimulsoft version 2014.3.0 but I see it is present in 2011.1.919 version too.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: hiding one page makes all pages after that to hide as we

Post by Alex K. »

Hello,

In this case, you can use the additional code in the Before print event.
If the issue still present, can you please send us a simple report with test data which reproduce the issue for analysis.

Thank you.
Post Reply