ReportViewer连续显示“正在加载..." [英] ReportViewer Displaying "Loading...", continuously

查看:505
本文介绍了ReportViewer连续显示“正在加载..."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个使用数据集作为数据源的报告.我面临的问题是,当我浏览页面时,它不断显示正在加载...",而没有停止.该报告内置于Microsoft.ReportViewer.WebForms.

我该如何解决?

顺便说一句,我不能使用RefreshReport()方法.


示例代码:

Hallo everybody,

I have a report which uses a dataset as its datasource. The problem faced by me is that, when I browse the page it continuously displays "Loading...", without stoping. The report is built in Microsoft.ReportViewer.WebForms.

How can I solve this?

By the way I couldn''t use the RefreshReport() method.


Sample Code:

this.ReportViewer1.LocalReport.DataSources.Clear();
            ReportDataSource RDS = new ReportDataSource("DataSet1", ds_DataSet1.Tables[0]);

            this.ReportViewer1.LocalReport.DataSources.Add(RDS);

            this.ReportViewer1.LocalReport.ReportEmbeddedResource = "Namespace.Report2.rdlc";



谢谢



Thanks

推荐答案

检查以下步骤.

1.检查数据库连接是否正确.
2.检查数据表是否返回记录.
3.检查报告的名称,包括名称空间.
4.以调试模式运行以检查这些步骤并查看发生了什么.

祝你好运.
Check the following steps.

1. Check the database connection is correct.
2. Check if the data table returns records.
3. Check the name of the report including the name space.
4. Run in debug mode to check these steps and see whats is happening.

Good luck.


这篇关于ReportViewer连续显示“正在加载..."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆