Add databands dynamically

Stimulsoft Reports.WEB discussion
Post Reply
ReportAndi
Posts: 5
Joined: Wed Aug 30, 2023 1:37 pm

Add databands dynamically

Post by ReportAndi »

Hello,

I hope you are doing fine and can help me with this issue.

I create reports based on data of an XML file.
The XML file contains data of different images and different crosstabs.
The arrangement of the image and crosstab is always the same: Both components are part of a data band. On the left is the image and on the right the crosstab.
I want to duplicate the databand and show different images and crosstabs with different values in every databand until all data is shown.
Right now I duplicate the databand by hand using the stimulsoft designer and assign the data to the components by hand.
As the number of images is variable and can become very large I need to find another solution.

Is it possible to only implement the databand once in the designer and apply the data dynamically until all data of the XML file is shown.

You can find a demo report XML file as well as a template.

If you have any question feel free to ask me again.

Kind regards
Report Andi
Attachments
reportData.xml
(95.95 KiB) Downloaded 61 times
dynamicReport.mrt
(33.57 KiB) Downloaded 61 times
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Add databands dynamically

Post by Lech Kulikowski »

Hello,

You should modify your data - please all data and images in one table.
https://demo.stimulsoft.com/#Net/Images

Thank you.
ReportAndi
Posts: 5
Joined: Wed Aug 30, 2023 1:37 pm

Re: Add databands dynamically

Post by ReportAndi »

Hello,

thanks for the reply.
Is it possible to hand me an example XML file with designer template containing the data for the images and crosstabs?

Best regards
Report Andi
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Add databands dynamically

Post by Lech Kulikowski »

Hello,

Please check the data in the attachment.

Thank you.
Attachments
Demo.xsd
(12.72 KiB) Downloaded 55 times
Demo.xml
(1.79 MiB) Downloaded 68 times
Post Reply