Data source not return data

Stimulsoft Reports.NET discussion
Post Reply
Leandro Borges
Posts: 219
Joined: Tue Oct 27, 2015 4:19 pm

Data source not return data

Post by Leandro Borges »

Good evening.
I have a DataBand whose data source not return data.
How to print it even if the data source does not return data?
Thank you.
Leandro.
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Re: Data source not return data

Post by Jan »

Hello, Leandro.

You cannot print DataBand without rows, but you can print HeaderBand or FooterBand if related DataBand does not have any rows. Please check PrintIfEmpty property of the Headers or Footers.

Thank you.
Leandro Borges
Posts: 219
Joined: Tue Oct 27, 2015 4:19 pm

Re: Data source not return data

Post by Leandro Borges »

Hello, Jan.

Is there any function to check if the data source does not return data? So I could change the CountData to 1 every time not return data.

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Data source not return data

Post by HighAley »

Hello, Leandro.

You could use the {DataSource1.Count} to check if the data are available.

Thank you.
Leandro Borges
Posts: 219
Joined: Tue Oct 27, 2015 4:19 pm

Re: Data source not return data

Post by Leandro Borges »

Hello.
It worked
Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Data source not return data

Post by HighAley »

Hello, Leandro.

We are always glad to help you.
Let us know if you need our help.

Thank you.
Post Reply