Enabled property of the page based on the null value

Stimulsoft Reports.NET discussion
Post Reply
jrSD
Posts: 23
Joined: Wed Jun 10, 2015 8:10 pm

Enabled property of the page based on the null value

Post by jrSD »

Is it possible to create an expression which turns the 'Enable' value of a page from True to False, etc.? For example, I have a report with multiple pages. When the filter for a specific page comes up null, said page is printed as a blank page. is there a way of disabling this page assuming null?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Enabled property of the page based on the null value

Post by HighAley »

Hello.

You should set Conditions for the page.
If you disable the Component is Enabled option, the Page will be disabled if the expression is true.

Thank you.
jrSD
Posts: 23
Joined: Wed Jun 10, 2015 8:10 pm

Re: Enabled property of the page based on the null value

Post by jrSD »

Thank you! Any chance I can get a little help writing the expression...pretty please?

Obviously, this is not correct: {IIF(DataBand4=null, Enabled=true, Enabled=False)}
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Re: Enabled property of the page based on the null value

Post by Ivan »

Hello,

If we understand your task correctly then you need to write the following expression, for example:

Code: Select all

YourDataSource.Count == 0
where YourDataSource is datasource used in the DataBand4.

If the issue is still present, please send to us a sample report template with data, which reproduce the issue, for analysis.

Thank you.
Attachments
PageCondition.png
PageCondition.png (33.75 KiB) Viewed 2324 times
Post Reply