向 MVC 添加报告功能?
背景:我目前有一个 Web 窗体 ASP.NET 3.5/C# 应用程序,我有兴趣将其转换为 MVC 2。这是一个相对较小的应用程序,因此练习不会花费太长时间。该应用程序的两个主要功能是允许用户
1) 查看并输入他们的数据 - 指标
2) 查看在更高级别聚合的数据的输出报告。
第二点是我关心的,因为我对 MVC 的第一印象是大多数报告工具都不能使用它。我目前正在使用 ReportViewer 进行 2),但我在此处和其他网站上读到,将其配置为与 MVC 一起使用是一件痛苦的事情。
是否有任何其他类型的报告功能可以与 MVC 2 一起使用?是否有一些“开箱即用”的功能?
或者根据您使用 MVC 2 的经验,整理您自己的报告会更容易吗?我的要求是制作一个类似于ReportViewer的矩阵样式的报告,其中有一些合并的单元格和两个级别的向下钻取。不知道从头开始使用 MVC 是否太复杂。
编辑:如果您知道有任何其他与 MVC 配合使用 ReportViewer 的报告附加组件,那就太好了。
Background: I currently have a Web Forms, ASP.NET 3.5/C# application which I'm interested in converting to MVC 2. It's a relatively tiny app so the exercise shouldn't take too long. The two primary functions the appliction does is allow users to
1) view and enter their data - metrics
2) view output reports of this data aggreggated at a higher level.
This second point is of concern to me as my first impression of MVC is that most of the reporting tools do not work with it. I'm currently using ReportViewer for 2) but I read here and on other sites that configuring it to work with MVC is a pain.
Are there any other types of Reporting capabilities that I could use with MVC 2? Are there some that work "out of the box"?
Or in your experience of using MVC 2, would it be easier to put together your own report? My requirement is to make a report that is similar to ReportViewer's Matrix style, with a few merged cells and a drill down by two levels. Don't know if that's way too complicated to do with MVC from scratch or not.
EDIT: Bonus if you know of any other Reporting add-ons that work with MVC besdies ReportViewer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我已使用 RDLC 本地报告来执行此操作,但我不使用报告查看器(即使在 Web 表单中也是如此)。 我总是将报告直接流式传输为 PDF。这在 MVC 中也很有效,因为在本例中我避免了报表查看器控件。
这个tutorial/post 展示了如何在 MVC 中进行流式传输。
I have used the RDLC local reports to do this but I don't use the report viewer (even in webforms). I always stream the report straight to PDF. This works great in MVC as well since in this case I am avoiding the report viewer control.
This tutorial/post shows how to stream in MVC.
请查看我关于reportviewer和mvc2的教程-> 如何在 MVC.NET 2 中使用 ReportViewer 2010
希望对您有帮助
Please check my tutorial about reportviewer and mvc2 -> How to use ReportViewer 2010 in MVC.NET 2
Hope it helps you