Omit header if data is empty in master detail report
Omit header if data is empty in master detail report
Hi,
I have a master detail report with header and data. I have attached an example report (Report.mrt). If data is existing all seams to be ok: But if the data is empty the header is still shown: How can I prevent showing header if data is empty?
Best regards,
Chris
I have a master detail report with header and data. I have attached an example report (Report.mrt). If data is existing all seams to be ok: But if the data is empty the header is still shown: How can I prevent showing header if data is empty?
Best regards,
Chris
- Attachments
-
- Report.mrt
- (14.68 KiB) Downloaded 316 times
Re: Omit header if data is empty in master detail report
Hello,
We couldn't reproduce the issue.
Can you please send us a test data for your report.
Thank you.
We couldn't reproduce the issue.
Can you please send us a test data for your report.
Thank you.
- Attachments
-
- Capture.PNG (39.41 KiB) Viewed 3633 times
Re: Omit header if data is empty in master detail report
Hi,
I have attached a VS project that creates example data for the report.
Best regards,
Chris
I have attached a VS project that creates example data for the report.
Best regards,
Chris
- Attachments
-
- ClassLibrary1.zip
- (16.23 KiB) Downloaded 271 times
Re: Omit header if data is empty in master detail report
Hello.
You have data in the Data2 band and the header is printed.
In this report you should swap Data2 band and HeaderBand2.
Thank you.
You have data in the Data2 band and the header is printed.
In this report you should swap Data2 band and HeaderBand2.
Thank you.
Re: Omit header if data is empty in master detail report
Great! This works perfectly! But now, I have another case, where I want to omit the header and I don't know how.
Best regards,
Chirs
If all data exists then there is no problem:
But if the data is null the header is still shown:
I can remove the second header if I create an empty collection, but the first header still exists:
How can I prevent showing header if data is empty in this case? For better understanding I have attached an example report within an example project.Best regards,
Chirs
- Attachments
-
- ClassLibrary1.zip
- (17.78 KiB) Downloaded 288 times
Re: Omit header if data is empty in master detail report
Hello.
We have reproduced your issue.
We will let you know when it will be fixed.
Thank you.
We have reproduced your issue.
We will let you know when it will be fixed.
Thank you.
Re: Omit header if data is empty in master detail report
Hello.
We have made an improvement. You could read more about this problem on our Knowledge Base.
It will be available in our next prerelease build.
You should add next code in your project:
Thank you.
We have made an improvement. You could read more about this problem on our Knowledge Base.
It will be available in our next prerelease build.
You should add next code in your project:
Code: Select all
Stimulsoft.Report.Dictionary.StiBusinessObject.FieldsIgnoreList["Test.Result"] = null;
report.Load("Report.mrt");
report.RegBusinessObject("Tests", tests);