Grouping Columns of different data source

Stimulsoft Reports.NET discussion
Post Reply
MarcoGecoit
Posts: 17
Joined: Tue Apr 12, 2011 8:22 am

Grouping Columns of different data source

Post by MarcoGecoit »

Good Evening
I have three data source, with a common column (ID).
In the first, I have a record with ID, Capital and State
In the second I have three records, with ID and Convention
In the third I have four records, with ID and Organization

How can I group the columns of three data source as follows?

Image

Thanks
Marco
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Grouping Columns of different data source

Post by HighAley »

Hello, Marco.
MarcoGecoit wrote:I have three data source, with a common column (ID).
In the first, I have a record with ID, Capital and State
In the second I have three records, with ID and Convention
In the third I have four records, with ID and Organization

How can I group the columns of three data source as follows?
To give a right answer we need to ask several additional questions:
Is ID unique filed?
Is there any relation between Convention and Organization? For example, does Medical should be in one line with Dr. Smith or it's just two independent columns for ID = 1?

Thank you.
MarcoGecoit
Posts: 17
Joined: Tue Apr 12, 2011 8:22 am

Grouping Columns of different data source

Post by MarcoGecoit »

Hello,
ID is the relation between the three tables. With ID=1, I've one "Capital" and "State", three "Convention" and four "Organization".
Convention and Organization are independent table with independent columns, in relation with ID

Image

Marco
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Grouping Columns of different data source

Post by HighAley »

Hello, Marco.
MarcoGecoit wrote:ID is the relation between the three tables. With ID=1, I've one "Capital" and "State", three "Convention" and four "Organization".
Convention and Organization are independent table with independent columns, in relation with ID
OK. Now we have a complete picture and have prepared two report templates.

The Simple report demonstrate how to solve the main problem.
And the Report recreate the report like at your first picture. Here the problem with empty cells is solved by using several Events, DataBands and Panels.

If you have some additional questions, please do not hesitate to contact us.

Thank you.
Attachments
1814.Report_simple.mrt
(18.24 KiB) Downloaded 179 times
1813.Report.mrt
(29.85 KiB) Downloaded 165 times
1812.data.xml
(1.88 KiB) Downloaded 155 times
MarcoGecoit
Posts: 17
Joined: Tue Apr 12, 2011 8:22 am

Grouping Columns of different data source

Post by MarcoGecoit »

Thank you very much! :byebye:
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Grouping Columns of different data source

Post by Andrew »

Hello,

Have a great weekend.

Thank you.
Post Reply