Page 1 of 2
Multiple Data Table
Posted: Mon Dec 13, 2010 9:13 am
by fkmfkm
I am now using this
rep.RegData(dtReport)
Can I register multiple DataTable to one SR ?
How should I do it ?
Multiple Data Table
Posted: Tue Dec 14, 2010 4:55 am
by Alex K.
Hello,
You can use the following code:
Code: Select all
rep.RegData(dtReport1);
rep.RegData(dtReport2);
...
or
Code: Select all
StiReport report = new StiReport();
DataSet dSet = new DataSet();
DataTable dtReport1 = new DataTable("T1");
DataTable dtReport2 = new DataTable("T2");
dSet.Tables.Add(dtRepor1);
dSet.Tables.Add(dtRepor2);
report.RegData(dSet);
Thank you.
Multiple Data Table
Posted: Tue Dec 14, 2010 6:27 pm
by fkmfkm
Thanks for your reply.
But if I have more than one DataTable how does SR knows which table is for which datasource ?
Multiple Data Table
Posted: Wed Dec 15, 2010 8:18 am
by Alex K.
Hello,
Could you please explain what do you mean?
Thank you.
Multiple Data Table
Posted: Wed Dec 15, 2010 6:08 pm
by fkmfkm
rep.RegData(dtReport1);
rep.RegData(dtReport2);
for the code above how do we know which datatable is for which DataSource (in Stimulreport) ?
Multiple Data Table
Posted: Fri Dec 17, 2010 7:26 am
by Alex K.
Hello,
The full syntax of the method:
report.RegData(string NameInDataStore, string AliasInDataStore, connection)
Thank you.
Multiple Data Table
Posted: Fri Dec 17, 2010 10:04 am
by fkmfkm
Where is this NameInDataStore and AliasInDataStore from ?
is it from the dialog where i create New Data Source ?
Multiple Data Table
Posted: Mon Dec 20, 2010 1:50 am
by Alex K.
Hello,
Yes, it is from the dialog.
Thank you.
Multiple Data Table
Posted: Thu May 24, 2012 9:55 pm
by Ali Kolahdoozan
Hi all
When I follow the code above , it does not show the data in the first DataTable and it counts out the first DataTable and it refuses the first one.
Regards
Ali
Multiple Data Table
Posted: Sat May 26, 2012 12:27 pm
by Ivan
Hello,
Can you please send us a simple test project, which reproduce the issue?
Thank you.