I open a report designer like this:
Code: Select all
report.Load(reportfilename);
if (dtDvOrDs.GetType() == typeof(DataTable))
report.RegData((DataTable)dtDvOrDs);
else if (dtDvOrDs.GetType() == typeof(DataSet))
report.RegData((DataSet)dtDvOrDs);
else if (dtDvOrDs.GetType() == typeof(DataView))
report.RegData((DataView)dtDvOrDs);
report.Dictionary.SortItems();
report.Design();
Thanks a lot for your help in advance!
Best regards, André