报表查看器控件版本 10 不分页

发布于 2024-10-05 11:10:00 字数 569 浏览 0 评论 0原文

我最近将报表查看器控件从版本 9 升级到版本 10,现在其分页控件不起作用。无论我使用下一页按钮、最后一页按钮还是输入页码,回发后页面总是重置为一页。

我知道数据集有不止一页的数据,如果我通过报表工具栏导出到 Excel,它甚至会完整返回给我。

Chrome javascript 控制台没有显示任何错误,并且检查 Fiddler 中分页控件生成的回发也没有发现任何明显错误。当我手动将页码设置为 2 并检查 Fiddler 中的表单字段时,我看到一个看起来像 CurrentPage 属性的表单字段,并且它的值确实是 2。但是,当重新加载页面时,该数字被重置为 1

。报告查看器显示本地 RDLC 报告。我在VS2010中打开它并选择升级其格式,以防万一,但无济于事。

我尝试过打开和关闭异步渲染,但效果不佳。

我在母版页上使用 AjaxControlToolkit 脚本管理器,而不是 asp:scriptManager。

一个可能相关的问题:我最初在寻找 System.Web.Ajax 时遇到程序集加载错误。我无法在添加引用对话框中找到此 dll。我最终将其从另一台未发生此问题的计算机复制到我的 bin 文件夹中。

I recently upgraded my report viewer control from version 9 to version 10, and now its paging controls don't work. Whether I use the next button, last page button, or type in a page number, after postback the page is always reset to one.

I know the dataset has more than one page of data, and it is even returned to me in full if I export to excel via the report toolbar.

The Chrome javascript console shows no errors, and inspection of the postback generated by the paging control in Fiddler yields nothing obviously wrong. When I manually set the page number to 2 and inspect the form fields in Fiddler, I see a form field that looks like the CurrentPage property, and its value is indeed 2. However when reloading the page, the number is reset to 1.

The report viewer displays a local rdlc report. I opened it in VS2010 and opted to upgrade its format, just in case, to no avail.

I have tried with async rendering on and off, no good.

I am using an AjaxControlToolkit script manager on my master page, instead of asp:scriptManager.

A possibly related issue: I was initially getting an assembly load error looking for System.Web.Ajax. I was unable to find this dll in the add reference dialog. I ended up copying it into my bin folder, from another machine on which this problem didn't occur.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

撩起发的微风 2024-10-12 11:10:00

请参阅 Charles Wang 在 MSDN 论坛上的回复

我用 MS 开了一个案例,这是一个
ReportViewer 控件的 BUG
SQL 2008。他们说这是固定的
与 R2,但我无法确认这一点
我只使用 2008 sp1

See Charles Wang's response on MSDN Forums.

I opened a case with MS, and this is a
BUG with the ReportViewer control for
SQL 2008. They said this is fixed
with R2, but I can't confirm that as
I'm only on 2008 sp1

梦一生花开无言 2024-10-12 11:10:00

对我来说也是如此,我解决了这个问题,在报表查看器控件上设置属性 PageCountMode=Actual

To me was happen the same, I resolved this issue set the property PageCountMode=Actual on the Report viewer control.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文