Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
my report viewer is displaying a report. I want to display another report on the same (one) report viewer but that error message displays: "The source of the report definition has not been specified."

I tried these:
reportViewer1.Reset();
reportViewer1.LocalReport.DataSources.Clear();
reportViewer1.LocalReport.ReportEmbeddedResource=TERMINAL_BENDING_APPLICATION.Report2.rdlc;
this.reportViewer1.RefreshReport();


Please help me?
Posted
Updated 1-Oct-14 1:49am
v2

1 solution

If you are fetching the data from Dataset then create a new datasource for 2 report and mapped it with same Reportviewer control.

or you may be missing this
LocalReport.ReportPath = @"../Reports/Report2.rdlc";

to load
LocalReport.LoadReportDefinition(fs);

fs -> File Stream
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900