problem of dataset with multiple tables
Posted: Fri Jul 23, 2010 4:53 am
hi I am having problems for both seeing data in StiWebViewer and in preview of StiWebDesigner with dataset which contains more than one dataTables. (it works with dataset with only one datatable)
I have a dataset which was genereted like:
i use this code to populate the report data for preview when open the page with StiWebViewer:
on the StiWebDesigner_GetPreViewDataSet event I have:
please help
thanks in advance
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