Page 1 of 1
Empty row in DataBand if no detail data available
Posted: Wed Jan 02, 2013 9:03 am
by tpontow
Hello,
i have a question regarding to a data band with empty detail data. I'd like to show a single row with empty text fields if there is no data for the data band. I set "Print if Detail Empty" property to True but nothing is shown.
Can you help me with that?
Thanks
Thorsten Pontow
Re: Empty row in DataBand if no detail data available
Posted: Thu Jan 03, 2013 7:11 am
by Alex K.
Hello,
Can you please send us a sample report with test data which reproduces the issue for analysis.
Thank you.
Re: Empty row in DataBand if no detail data available
Posted: Thu Jan 03, 2013 10:41 am
by tpontow
Hello Aleksey,
i don't understand why you need a sample for a report with an empty data source? But ok, here is one:
I altered one of your Stimulsoft C# BusinessObject report sample projects. Start the project via VisualStudio and then click to preview the IEnumerable report.
The data source is an empty collection. The header property "
Print if Empty" and the DataBand property "
Print if detail empty" are both set to
true. The header is shown but not the DataBand.
The used report file is
BusinessObjects_IEnumerable2.mrt.
How can i manage to see one empty row with the designed text controls if the data for the report is empty?
To see the report with some data remove the comments from file
BusinessObjects_IEnumerable.cs lines 151 - 187. Then also remove or comment the lines with
Thanks
Thorsten Pontow
Re: Empty row in DataBand if no detail data available
Posted: Thu Jan 03, 2013 10:50 am
by tpontow
By the way: it is no solution to add one empty data record to the data source because my real report data comes from a database via our project framework. And so i cannot add one dummy data record.
Re: Empty row in DataBand if no detail data available
Posted: Fri Jan 04, 2013 7:04 am
by HighAley
Hello.
The
Print if Detail Empty property of the Band works in Master-Detail report in the Master Band and when it is set to True the Master Band will be printed if the Detail Band is empty.
So in your report this property is useless.
We can provide you to use Footer Band with Condition. Please, look at the attached report template.
Thank you.
Re: Empty row in DataBand if no detail data available
Posted: Fri Jan 04, 2013 7:59 am
by tpontow
Hello Aleksey,
thanks for your quick response and the solution. A Footer Band with Condition is a nice way to solve the problem for me.
Thanks
Thorsten
Re: Empty row in DataBand if no detail data available
Posted: Fri Jan 04, 2013 8:34 am
by HighAley
Hello.
We are always glad to help you.
Let us know if you need any additional help.
Thank you.