Click here to Skip to main content
14,691,972 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm making a windows application where I have forms opening inside a main form, when I went to open a report viewer inside the secondary forms (the form that changes constantly, while the main form is fixed)
the program breaks ...

- $ exception {"An error occurred while processing local reports."} Microsoft.Reporting.WinForms.LocalProcessingException

Does anyone know what I should do?

What I have tried:

I tried to generate the reportViewer connection, but so far I couldn't.
Perhaps opening a pop form is more practical.
Updated 23-Jul-20 19:56pm
Patrice T 23-Jul-20 21:00pm
Tried Google ?

1 solution

See if any of the following works:
1. Set:
this.reportViewer1.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Local;

2. Define something like:
this.reportViewer1.LocalReport.ReportPath = "Report1.rdlc";

3. Try to set your reporting params like below if not so:
ReportParameter[] parms = new ReportParameter[2];
parms[0] = new ReportParameter("param_name", textbox1.text);
parms[1] = new ReportParameter("param_course", textbox2.text);

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