Data from two Data Bands gets mixed

Stimulsoft Reports.WEB discussion
Post Reply
mksch
Posts: 14
Joined: Mon Aug 17, 2020 1:10 pm

Data from two Data Bands gets mixed

Post by mksch »

Hello,

I have 2 data bands in my template. Both data bands are linked to different data sources.
img1.JPG
img1.JPG (157.63 KiB) Viewed 2017 times
Once I generate the template from the application, the data from the second data band gets printed as part of the first data band, but it should only be printed where the second data band is. I have this issue with several templates. Is there a way this can be avoided? The only solution I found so far is adding in a second page on the report, however this is not the ideal solution as the text should be printed all together.
img2.png
img2.png (93.1 KiB) Viewed 2017 times
I attached the generated template for reference.

Thank you very much for your help.

Best regards,
Markus
Attachments
Complete Template.pdf
(36.73 KiB) Downloaded 147 times
Lech Kulikowski
Posts: 6265
Joined: Tue Mar 20, 2018 5:34 am

Re: Data from two Data Bands gets mixed

Post by Lech Kulikowski »

Hello,

Please send us a sample report with test data that reproduces the issue for analysis.

Thank you.
mksch
Posts: 14
Joined: Mon Aug 17, 2020 1:10 pm

Re: Data from two Data Bands gets mixed

Post by mksch »

Hello,
enclosed is the .mrt file, however i am not able to extract any sample data from the application.
I hope you may be able to suggest a solution without sample data.
Thank you very much.
Best reagards,
Markus
Attachments
Contract.mrt
(585.55 KiB) Downloaded 130 times
Lech Kulikowski
Posts: 6265
Joined: Tue Mar 20, 2018 5:34 am

Re: Data from two Data Bands gets mixed

Post by Lech Kulikowski »

Hello,

Please check the modified report, were added top levels of business objects.

If the issue still present, please send us test data for your report.

Thank you.
Attachments
Contract_modified.mrt
(592.02 KiB) Downloaded 166 times
mksch
Posts: 14
Joined: Mon Aug 17, 2020 1:10 pm

Re: Data from two Data Bands gets mixed

Post by mksch »

Dear Lech,

thank you for providing the modified version. If I understand the modification correctly, you added a DataBand at the top with the topmost data element?
It partly worked. Data in the lower data bands now displays correct, however they get printed on the very top section of the report as one.
The attachment img.png is no longer available
My other workaround I used so far was adding multiple pages to the report, then the data displays correct.
img.png
img.png (58.77 KiB) Viewed 1988 times
I like using multiple pages as to me the templates are easier to work with instead of having lots of data bands on one page which then not always show in the editor.

Since I never know how much data would be within a data band, it happens that only a few lines are printed on one page and then page break to page 2 and so on. Is there the possibility to use multiple pages, but have them print without page breaks as if it was all configured on one page? This would also solve the issue with the data of multiple data bands being mixed.

Thank you very much.
Best regards,
Markus
Lech Kulikowski
Posts: 6265
Joined: Tue Mar 20, 2018 5:34 am

Re: Data from two Data Bands gets mixed

Post by Lech Kulikowski »

Hello,

Also, please try to set the MasterData for the detail bands.

Thank you.
mksch
Posts: 14
Joined: Mon Aug 17, 2020 1:10 pm

Re: Data from two Data Bands gets mixed

Post by mksch »

Dear Lech,

thank you for the above solutions. It worked after all.

Best regards,
Markus
Lech Kulikowski
Posts: 6265
Joined: Tue Mar 20, 2018 5:34 am

Re: Data from two Data Bands gets mixed

Post by Lech Kulikowski »

Hello Markus,

We are always glad to help you!

Thank you.
Post Reply