I have created a custom control (a windows form with a report viewer). I have the following code to load a local report:
Contained in CustomReportViewer Clas
you may be able to just use a datatable instead of a dataset. change this:
DataSet ds = new DataSet(); da.Fill(ds); DataTable dt = ds.Tables[0];
to this:
DataTable dt = new DataTable(); da.Fill(dt);
and this:
reportDataSource.Value = ds.Tables[0];
to this
reportDataSource.Value = dt;