I have a dataset which was genereted like:
Code: Select all
dsAll.DataTable.Add(td1);
dsAll.DataTable.Add(td2);
Code: Select all
report.Load(appString + ReportPath);
report.RegData(dsAll.DataSetName, dsAll);
StiSqlDatabase database = new StiSqlDatabase(data.DataSetName, ConfigurationManager.ConnectionStrings["CS1"].ToString());
report.Dictionary.Databases.Clear();
report.Dictionary.Databases.Add(database);
report.Dictionary.Synchronize();
Code: Select all
e.PreviewDataSet = dsAll;
thanks in advance