向 MVC 添加报告功能?

发布于 2024-09-15 19:07:12 字数 537 浏览 3 评论 0原文

背景:我目前有一个 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 技术交流群。

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

发布评论

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

评论(2

醉南桥 2024-09-22 19:07:12

我已使用 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.

梦情居士 2024-09-22 19:07:12

请查看我关于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

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