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 RamamoorthiRank #877 · 2.5K reputationPosted Sep 27, 2021, 10:59 AM EDT
Emmmanuel FIADUFERank #947 · 2.2K reputationPosted Sep 27, 2021, 1:30 PM EDT
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
Srinivasan RamamoorthiRank #877 · 2.5K reputationPosted Sep 28, 2021, 12:47 PM EDT
Shweta LodhaRank #31 · 39.8K reputationPosted Sep 28, 2021, 2:18 PM EDT