Click here to Skip to main content
15,885,278 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.
Posted
Updated 23-Jul-20 18:56pm
Comments
Patrice T 23-Jul-20 21:00pm    
Tried Google ?

1 solution

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


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


3. Try to set your reporting params like below if not so:
C#
ReportParameter[] parms = new ReportParameter[2];
parms[0] = new ReportParameter("param_name", textbox1.text);
parms[1] = new ReportParameter("param_course", textbox2.text);
this.reportViewer1.LocalReport.SetParameters(parms);
this.reportViewer1.RefreshReport();
 
Share this answer
 

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