I have a strange problem in Visual Studio 2010 (C #) using a report viewer to load an RDL file.
I use the following code to load RDL:
//get the data set and then //. //. //pass the report to the viewer using (FileStream stream = new FileStream(_AccessReportDocument.FileName, FileMode.Open)) { this.AccessReportViewer.LocalReport.LoadReportDefinition(stream); } this.AccessReportViewer.LocalReport.Refresh();
The problems are that when the piece of code above reaches the last line, the code goes to the "Unloading Method" page and then returns to this.AccessReportViewer.LocalReport.Refresh (); that is, to an infinite loop, Has anyone experienced this before? I read that there are problems with the report viewer for vs 2010, but mostly with the settings, which I am not trying to do yet ....
Debugging shows that all data sets, etc. retrieved for sure - so this is not a problem.
source share