Hello team,
I developed C# window application which uses sqlsever and Microsoft ReportView for printing data, when I run the application the printpreview work perfectely but after a publish the application and i installed it, I got the below error, kindly assist.
An error occured during local report processing
The report definition for report 'Report1' has not been specified
Could not find a part of the path 'C:\Users\Emmafk\Apps\2.0\V2EN29NZ.NLV
\C580Y5TG.XL6\frmp..tion_234e0dfdc0975fbb_0001.0000_575ac2e964504824\Report\Report1.rdlc'.
Srinivasan RamamoorthiPosted Sep 27, 2021, 2:59 PM
Shweta LodhaPosted Sep 28, 2021, 6:18 PM
Srinivasan RamamoorthiPosted Sep 28, 2021, 4:47 PM
Emmmanuel FIADUFEPosted Sep 27, 2021, 5:30 PM
this.reportViewer1.LocalReport.ReportPath = Application.StartupPath + @"\Reports.Report2.rdlc";
this.reportViewer1.LocalReport.DataSources.Clear();
POSDataSet ds = new POSDataSet();
SqlDataAdapter da = new SqlDataAdapter();
reportViewer1.LocalReport.SetParameters(pDate);
reportViewer1.LocalReport.SetParameters(pCashier);
reportViewer1.LocalReport.SetParameters(pHeader);
rptDS = new ReportDataSource("DataSet1", ds.Tables["dtSoldReport"]);
reportViewer1.LocalReport.DataSources.Add(rptDS);
reportViewer1.SetDisplayMode(Microsoft.Reporting.WinForms.DisplayMode.PrintLayout);
reportViewer1.ZoomMode = ZoomMode.Percent;
reportViewer1.ZoomPercent = 100