Last post Sep 08, 2011 01:19 PM by pcs
Sep 08, 2011 12:36 PM|pcs|LINK
I am using Enity framework model.I have created report by using report and selecting
object as the datasource in windows project.
Local Processing mode is used.Now I cannot use the automatically created bindingsource object.
I have to load the rdlc report by writing code in Form1.cs.I am not sure how to load rdlc report programmatically.
Please assist me.
Sep 08, 2011 01:01 PM|princeG|LINK
Check below example and you will be able to bind RDLC
Sep 08, 2011 01:19 PM|pcs|LINK
Microsoft.Reporting.WinForms.ReportDataSource rds = new Microsoft.Reporting.WinForms.ReportDataSource();
this.reportViewer1.LocalReport.ReportEmbeddedResource = "Test.rdlc";
rds.Name = "Example";
string path = this.reportViewer1.LocalReport.ReportPath;
Please let me know what is incorrect in the above code.
I get a message that an error occurred during local processing.