I create a C# program and connected to stimulsoft for Make Reports.
I send a Dataset with 2 Datatable to my report with below code:
DataSet ds = new DataSet();
dtP.TableName = "dtP";
dtF.TableName = "dtF";
ds.Tables.Add(dtP);
ds.Tables.Add(dtF);
Report.RegData(ds);
Report.Show();
and "Report" is stireport object.
when my report page shown. my report is empty.
And when sent just 1 datatable as Dataset to my report that's work well.
Solve:
with add below code to my c# program can solve my problem:
objStiReport.Dictionary.Clear();
objStiReport.RegData(ds);
objStiReport.Dictionary.Synchronize();
I also had this problem. I tried many ways but no one solve the problem. I changed something in the dictionary in stimulsoft report designer.
1) choose the Data from Dataset, DataTable
data adaptor type
2) Set a name for Name In Source
property (for example DS
)
3) Add some tables to DS
and set the Name In Source
of them to something like this DS.Table1
. Note that it's important to set the Name In Source
property of tables like this.
As I set the Name In Source
property of tables like DS.TableName
, the problem gone away for me.