A Join between two data bands or data sources

Stimulsoft Reports.WEB discussion
Post Reply
jkoo
Posts: 64
Joined: Fri Aug 19, 2011 8:08 pm

A Join between two data bands or data sources

Post by jkoo »

Hi,

It might be about Union of two data rather than join of two data.

Anyway let's have two data tables 'Task1', 'Task2" which have two columns 'Name','Date'.
What I want to do here is to create a report to show all data from 'Task1' and 'Task2' but I want to sort by 'Date'.

If I join two tables and then pass it to StimulSoft, I think it's possible.
But it's not my option. I cannot pass one joined table. I can pass only one dataset includes two Tables 'Task1' and 'Task2' to the report.
In that case, is there any way to create a report for combined result from two table with 'Date' sort column in the StimulSoft?

Date Name
==== =====
11111 xxxxx <= it's from "Task1"
22222 yyyyyy <= it's from "Task2"
33333 xxxxxx <= It's from "Task1"
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: A Join between two data bands or data sources

Post by HighAley »

Hello.

Unfortunately, there is no build-in methods to do it.
You could join them with code, for example, in the Begin Render event of the page.

Thank you.
jkoo
Posts: 64
Joined: Fri Aug 19, 2011 8:08 pm

Re: A Join between two data bands or data sources

Post by jkoo »

Is there any sample code for that?

Thanks
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: A Join between two data bands or data sources

Post by Alex K. »

Hello,

Please try to use the Merge() method of DataSet object for this task.

Thank you.
Post Reply