Multiple Data Table
Multiple Data Table
I am now using this
rep.RegData(dtReport)
Can I register multiple DataTable to one SR ?
How should I do it ?
rep.RegData(dtReport)
Can I register multiple DataTable to one SR ?
How should I do it ?
Multiple Data Table
Hello,
You can use the following code:
or
Thank you.
You can use the following code:
Code: Select all
rep.RegData(dtReport1);
rep.RegData(dtReport2);
...
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);
Multiple Data Table
Thanks for your reply.
But if I have more than one DataTable how does SR knows which table is for which datasource ?
But if I have more than one DataTable how does SR knows which table is for which datasource ?
Multiple Data Table
Hello,
Could you please explain what do you mean?
Thank you.
Could you please explain what do you mean?
Thank you.
Multiple Data Table
rep.RegData(dtReport1);
rep.RegData(dtReport2);
for the code above how do we know which datatable is for which DataSource (in Stimulreport) ?
rep.RegData(dtReport2);
for the code above how do we know which datatable is for which DataSource (in Stimulreport) ?
Multiple Data Table
Hello,
The full syntax of the method:
report.RegData(string NameInDataStore, string AliasInDataStore, connection)
Thank you.
The full syntax of the method:
report.RegData(string NameInDataStore, string AliasInDataStore, connection)
Thank you.
Multiple Data Table
Where is this NameInDataStore and AliasInDataStore from ?
is it from the dialog where i create New Data Source ?
is it from the dialog where i create New Data Source ?
Multiple Data Table
Hello,
Yes, it is from the dialog.
Thank you.
Yes, it is from the dialog.
Thank you.
-
- Posts: 7
- Joined: Sat Mar 01, 2008 10:19 am
- Location: Malaysia
Multiple Data Table
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
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
Hello,
Can you please send us a simple test project, which reproduce the issue?
Thank you.
Can you please send us a simple test project, which reproduce the issue?
Thank you.