use*_*142 4 c# asp.net visual-studio
我在Visual Studio 2010(C#)中使用报表查看器加载RDL文件时遇到一个奇怪的问题.
我使用以下代码加载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();
Run Code Online (Sandbox Code Playgroud)
问题是,一旦上面的一段代码到达最后一行,代码就会跳转到页面的Unload Method然后再回到this.AccessReportViewer.LocalReport.Refresh(); 即无限循环.有谁之前经历过这个吗?我已经读过,针对vs 2010的报告查看器存在问题,但主要是设置参数,我还没有尝试做的事情....
调试显示所有数据集等都被正确检索 - 所以这不是问题.
| 归档时间: |
|
| 查看次数: |
6607 次 |
| 最近记录: |