|
Question : programmatically work with object data source and report viewer
|
|
Trying to use object data source control programmatically. I need to use it with a report viewer control. Just trying to hardcode some values which seems to work fine. but I don't know how to bind the report
Here is my sample code
ObjectDataSource os = new ObjectDataSource("TutorManager", "GetList"); os.DataObjectTypeName = "BizObject.clsTutor"; genericReportViewer.LocalReport.DataSources.Clear(); genericReportViewer.LocalReport.ReportPath = Server.MapPath("TutorReport.rdlc"); genericReportViewer.LocalReport.DataSources.Add(new ReportDataSource(???????
Any pointers?
|
|
Answer : programmatically work with object data source and report viewer
|
|
|
|
|