Reportviewer不断刷新 [英] Reportviewer constantly refreshing

查看:119
本文介绍了Reportviewer不断刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设置使用Reportviewer的第一个测试。所有应用程序都会从​​数据库中获取一些数据,将其加载到数据集中,然后使用数据表填充一个简单的报表。问题是当报告显示时,它会一直显示消息"正在生成的报告"。并重新显示报告。它闪烁大约一秒钟。我查看了所有的观察器特性,我没有看到任何不合适的内容。

有任何建议吗?

谢谢,
伯尼

I'm setting up my first test of using Reportviewer. All the application does is grab some data from a database, load it into a dataset and they populate a simple report with the datatable. The problem is when the report displays, it keeps displaying the message "Report Being Generated" and redisplaying the report. Its flashing about once a second. I've looked through all the viewer propertys and I don't see anything out of line.

Any suggestions?

Thanks,
Bernie

推荐答案

"正在生成报告"报表查看器首次处理报表时显示消息。 从您的描述中发现的情况并不完全清楚,但我想知道您是否在每次回发期间在页面中执行操作,导致查看者将报表定义视为已更改,因此每次都重新启动报表处理。 您是否在LoadViewState事件后在查看器上设置任何属性,例如在OnLoad期间? 这样做可能会导致观看者认为定义正在发生变化,因此会中止之前的渲染,并使用新的等待消息实例启动新的渲染。 您可以考虑将此类代码移至OnInit。

另外,您使用的是哪个版本的ReportViewer? 我假设您使用的是控件的ASP.Net版本,而不是winforms版本。

The "Report is Being Generated" message is displayed when the report viewer is first processing the report.  It's not completely clear from your description what is happening, but I wonder if you are performing an operation in your page during each postback that is causing the viewer to treat the report definition as having changed and therefore restart report processing each time.  Are you setting any properties on the viewer after the LoadViewState event, such as during OnLoad?  Doing so might cause the viewer to think the definition is changing and therefore abort the previous rendering and start a new one, with a new instance of the wait message.  You might consider moving such code to OnInit.

Additionally, which version of the ReportViewer are you using?  I'm assuming you are using the ASP.Net version of the control and not the winforms version.


这篇关于Reportviewer不断刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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