MSFT 报告查看器 (rdlc) 是否可以与 MVC 一起使用 [英] Would the MSFT Report Viewer (rdlc) Work with MVC

查看:20
本文介绍了MSFT 报告查看器 (rdlc) 是否可以与 MVC 一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对学习 MVC 感兴趣,并尝试了几个示例应用程序.作为一个项目,我想将我自己的办公应用程序的一部分或全部迁移到 MVC.这个应用程序以及我为客户提供的所有应用程序的一个重要部分是发票、采购订单、库存清单等的打印.事实上,他们判断我们所做工作的主要标准之一是这些文档的外观以及它们以实用、直观的方式整合到应用中.

I am interested in learning MVC, and have experimented with a couple of the sample apps. As a project, I'd like to move part or all of my own office app to MVC. An important part of this app, and of ALL of my apps for customers, is the printing of invoices, purchase orders, inventory lists and so forth. In fact, one of their main criteria for judging what we do is the appearance of these documents and their incorporation into the app in a practical, intuitive way.

如果没有报告作者,我是不可能过得去的.用于生成 rdlc 报告的 MSFT 报告查看器已经足够了,甚至在几个关键领域的表现都优于竞争对手.

It's impossible for me to get by without a report writer. The MSFT report viewer used to produce rdlc reports has been sufficient, and even comes up better than the competition in a couple of key areas.

此控件是否适用于 ASP.NET MVC 应用程序?

Does this control work with an ASP.NET MVC application?

推荐答案

ASP.NET ViewState 已被禁用.报表查看器控件要求启用 ViewState."如果您从视图运行报表查看器.

"ASP.NET ViewState has been disabled. The Report Viewer control requires that ViewState be enabled." if you run the report viewer from a view.

但是您可以在同一个项目中运行网络表单页面.丑陋,但有效.

But you can run a webforms page in the same project. Ugly, but it works.

你也可以试试这个:http://weblogs.asp.net/rajbk/archive/2006/03/02/How-to-render-客户端报告定义文件-_28002E00_rdlc_2900_-directly-to-the-Response-stream-without-preview.aspx

这篇关于MSFT 报告查看器 (rdlc) 是否可以与 MVC 一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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