'Can't Print the RDLC report when I deploy onto another computer?
When i run this on VS it works fine but when i run it on another computer it cant find the RDLC path.
private void button1_Click(object sender, EventArgs e)
{
LocalReport localReport = new LocalReport();
ReportParameterCollection reportParameters = new ReportParameterCollection();
reportParameters.Add(new ReportParameter("Pallet_label", lb_pallet_name.Text));
reportParameters.Add(new ReportParameter("Par_PalNum", LB_Number.Text));
localReport.ReportPath = Application.StartupPath + "\\pallet_label.rdlc";
localReport.SetParameters(reportParameters);
localReport.PrintToPrinter();
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
