开发者

Report Viewer Control Version 10 Not Paging

开发者 https://www.devze.com 2023-01-28 10:44 出处:网络
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 pos

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:scrip开发者_运维知识库tManager.

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.


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消