Page 1 of 1

Register more than one datasource

Posted: Fri Jul 01, 2016 1:21 pm
by ecpmiranda
How can I register more than one datasource?

Most of may reports has one datasource and I use the next statement

Code: Select all

                report.RegData("DataSet1", dataSource1);
Now I need to register two datasources like this

Code: Select all

                report.RegData("DataSet1", dataSource1);
                report.RegData("DataSet2", dataSource2);

Re: Register more than one datasource

Posted: Fri Jul 01, 2016 1:35 pm
by Alex K.
Hello,

Can you please describe your issue in more details. What is wrong with this code?

Code: Select all

report.RegData("DataSet1", dataSource1);
report.RegData("DataSet2", dataSource2);
Thank you.

Re: Register more than one datasource

Posted: Fri Jul 01, 2016 1:41 pm
by ecpmiranda
The DataSet1 is master anda DataSet2 is detail. When I register the two datasets, the report displays a blank page.
When I register only master the report works fine but without data for detail.
The report has a subreport to display detail data.
In the dictionary I put the two datasources like the image attached.

Re: Register more than one datasource

Posted: Fri Jul 01, 2016 2:05 pm
by HighAley
Hello.

Please, set the Cache All Data property of the report to True.
If this does not help we need to see your project.

Thank you.

Re: Register more than one datasource

Posted: Fri Jul 01, 2016 3:18 pm
by ecpmiranda
I found a solution! Made some modifications on my classes! Thank you!

Re: Register more than one datasource

Posted: Mon Jul 04, 2016 12:15 pm
by HighAley
Hello.

Great!
Let us know if you need our help.

Thank you.