MVC中的RDLC分页问题 [英] RDLC paging problem in MVC

查看:76
本文介绍了MVC中的RDLC分页问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 Hello Everyone,
我正试图在MVC中显示RDLC报告并遇到问题。由于我无法在Razor页面中显示RDLC,因为Razor没有ReportViewer,因此我在View文件夹结构中获取了一个Web表单(.aspx)视图。在aspx视图中,我轻松访问了ReportViewer。我正在使用'Code First With Existing Database'方法。所以,我没有使用任何.edmx文件或数据集来绑定报告。我使用我的模型类作为对象数据源到RDLC报告,并且在使用报告wizerd创建报告时,我绑定了数据源。现在,当我点击动作时,我可以看到报告在视图页面中显示数据。但问题是我只能看到一页。根据数据源有32页,我只能看到第一页(或我在< script runat = 服务器 > 块)。
但如果我点击下一个箭头就没有任何反应。它仍然显示第一页。我无法改变分页。即使是find选项也无效。我已经在Load函数中设置了调试器,它只在第一次加载报表时才会调试调试器,而不是在我点击下一个按钮时的任何后续请求中。

我将processingMode = local设置为将其设置为remote不显示报告。
我正在使用MVC4 razor视图,但只有这个页面是在aspx视图中完成的。
我是MVC和RDLC的新手,所以详细的解决方案将非常有用。
谢谢。

解决方案

< big>< code>& ; lt;& amp;< a href =>< / a>< a href =>< / a> [< a href =target =_ blank> ^< / A>]< /代码>< /大>

Hello Everyone,
I'm trying to show RDLC report in MVC and stuck with a problem. As I can't show RDLC in Razor page as Razor doesn't have ReportViewer, I took a web form (.aspx) view in my View folder structure. In aspx view I easily accessed ReportViewer. I'm using 'Code First With Existing Database' approach. So, I'm not using any .edmx file or dataset to bind the report. I'm using my Model Class as Object Datasource to the RDLC report and while creating the report using report wizerd I've bound the datasource. Now when I hit the action I can see the report showing data in view page. But the problem is that I can see only one page. There are 32 pages as per the datasource and I can see only the first page( or any other page that I've set in the Load function inside the <script runat="server"> block).
But if I click on the next arrow nothing happens. It still shows the first page. I can't change the paging. Even the find option isn't working. I've set the debugger in the Load function and it hits the debugger only the first time the report is loading, not on any subsequent request like when I click the next button.

I've set processingMode=local as setting it to remote doesn't show the report.
I'm using MVC4 razor view but only this page is done in aspx view.
I'm new to both MVC and RDLC so a detailed solution will be very helpful.
Thank you.

解决方案

<big><code>&lt;&amp;<a href=""></a><a href=""></a>[<a href="" target="_blank">^</a>]</code></big>


这篇关于MVC中的RDLC分页问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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