How to pass multiple tables
Posted: Fri Apr 16, 2021 5:21 am
When I only pass one table,code like this:
But when I want to pass two tables,how to write the code?
I've tried two ways:
1.
2.
But when I used the first way,only one of the two tables has data.
When I used then second way,there is no data.
What shall I do? Are there any more detailed official API documents or examples?
Code: Select all
StiReport report = new StiReport();
report.Load("file.mrt");
report.RenderedPages.Clear();
report.RegData(table);
report.Render();
report.Print();
I've tried two ways:
1.
Code: Select all
StiReport report = new StiReport();
report.Load("file.mrt");
report.RenderedPages.Clear();
report.RegData(table);
report.Render();
report.RegData(table1);
report.Render();
report.Print();
Code: Select all
StiReport report = new StiReport();
report.Load("file.mrt");
report.RenderedPages.Clear();
report.RegData(dataset);
report.Render();
report.Print();
When I used then second way,there is no data.
What shall I do? Are there any more detailed official API documents or examples?