How to print a label if report is empty

Stimulsoft Reports.NET discussion
Post Reply
fuhrj
Posts: 120
Joined: Wed Jun 11, 2008 12:51 pm
Location: Lancaster, Ohio

How to print a label if report is empty

Post by fuhrj »

I need to display a label 'No data found' if the report yields no results.

Right now, it just displays the Report Title band

Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

How to print a label if report is empty

Post by Edward »

Hi

Please add the following expression to the text box:

{MyDataSource.Count == 0?"No data found":""}

Thank you.
fuhrj
Posts: 120
Joined: Wed Jun 11, 2008 12:51 pm
Location: Lancaster, Ohio

How to print a label if report is empty

Post by fuhrj »

Thanks Edward
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

How to print a label if report is empty

Post by Edward »

Hi

You are welcome.

Thank you.
Post Reply