Page 1 of 3
No SubReport printing if its DataTable has no rows.
Posted: Mon Aug 01, 2011 2:10 am
by LukasT
Hello,
I have request for specific function... I need posibility to disable content of subReport if its dataTable (or DataBand) has no rows. But this must be function of SubReport. Is this function available or I have to do some workaround?
Thank you

No SubReport printing if its DataTable has no rows.
Posted: Mon Aug 01, 2011 7:59 am
by Alex K.
Hello,
As a way, you can use Conditions.
Please check the report in attachment.
Thank you.
No SubReport printing if its DataTable has no rows.
Posted: Tue Aug 02, 2011 5:39 am
by LukasT
Thank you Aleksey,
but this is not solution for our case. The problem is, that we have subreport in DataBand and this is why I need to control subreport visibility inside. But by using Conditions I can control only objects on Page, not whole Page...
No SubReport printing if its DataTable has no rows.
Posted: Tue Aug 02, 2011 8:23 am
by HighAley
Hello, Lukas.
Please send us a screenshot which demonstrates the issue.
Thank you.
No SubReport printing if its DataTable has no rows.
Posted: Fri Aug 05, 2011 4:19 am
by LukasT
Hello,
example report is attached...
... even if I disable all components in subreport (in case of empty subreport's databand), subreport is still holding its free place. Problem is, that subreports are in databand of main report and on each row we need different group of subreports...
No SubReport printing if its DataTable has no rows.
Posted: Fri Aug 05, 2011 7:12 am
by Alex K.
Hello,
Please send us your report with sample data for analysis.
Thank you.
No SubReport printing if its DataTable has no rows.
Posted: Fri Aug 05, 2011 9:01 am
by LukasT
Ok Aleksey, I will try to prepare some clear example on monday

Have a nice weekend!
No SubReport printing if its DataTable has no rows.
Posted: Sun Aug 07, 2011 12:17 pm
by Andrew
Great!
Waiting for your reply.
Thank you.
No SubReport printing if its DataTable has no rows.
Posted: Mon Aug 08, 2011 4:29 am
by LukasT
Hello,
example is almost ready... but I have one problem. I had to export report data to XML and XSD, but if I load this as XML Data, Relations are cofigured but not functional... Everything in Relations is the same as in report produced by our system with data loaded by... .RegData("reportdata", new DataSet(..... )); .... looks like XML Data is not supporting relations...
No SubReport printing if its DataTable has no rows.
Posted: Tue Aug 09, 2011 5:19 am
by Alex K.
Hello,
Please describe in more details where and how do you try export data.
Thank you.