ASP.NET报告什么,如何以及何时使用RDLC [英] ASP.NET reporting, what, how and when to use RDLC

查看:134
本文介绍了ASP.NET报告什么,如何以及何时使用RDLC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的asp.net报告并不能得到的东西工作起来为我好。
基本上,我做了什么被告知演示<一个href=\"http://weblogs.asp.net/rajbk/archive/2010/05/09/creating-an-asp-net-report-using-visual-studio-2010-part-1.aspx\"相对=nofollow>此处。一切正常,它生成我的本地系统上的报告。但是,并没有工作的网络服务器上。

I am new to reporting in asp.net and can't get the things work up good for me. Basically, I made a demo of what was told here. Everything worked fine and it generated report on my local system. But, did not worked on the web server.

现在,我有一个困惑的位置:有在asp.net中报表的2种模式[2010 VS - .NET 4.0],本地模式和服务器模式。本地模式拥有RDLC扩展,服务器模式具有RDL作为扩展的报表设计文件,它需要SQL Server报表的支持,这在另一方面RDLC是在客户机发[它可能看起来是一个愚蠢的问题,但,难道是我的机器或我的电脑,而不是Web服务器,意味着我不能部署和使用它在Web服务器上。

Now, I've got a confusion here: There are 2 modes of a reporting in asp.net [VS 2010 - .NET 4.0], Local Mode and Server Mode. Local Mode has RDLC extension and Server mode has RDL as extension for the report design file, and it requires Sql Server reporting for support, for which on the other hand RDLC is made on the Client Machine [it may look to be a dumb question but, is it my machine or my pc and not the web server, means I cannot deploy and use it on the web server].

混乱的基础是,我已经上传了同样的演示项目在我的网络托管并运行它。该报告查看器控制是完全显示和每一件事看起来很不错,但是这是要呈现的实际报告是从下面的报表查看器工具栏的缺席。但是,在同一时间,我可以下载PDF,XLS,报告的DOC格式完全细末,用所产生的实际的行和列,这表明正在生成的报表(也被列入一个柱状图RDLC的设计,并且它产生以及)。我猜这是因为Web服务器并没有在其上安装报表查看器库,并且不知道如何渲染RDLC文件。

The base of the confusion is that I had uploaded the same demo project on my web hosting and ran it. The report Viewer control was showing perfectly and every thing was looking fine, but the actual report that was to be rendered was absent from below of the Report Viewer Toolbar. But, at the same time, I was able to download the PDF, XLS, and DOC format of the report completely fine, with the actual rows and columns generated, which shows that the report was being generated (A bar graph was also included in the design of rdlc, and it generated as well). I guess this was because the web-server did not had Report Viewer libraries installed on it, and did not know how to render the RDLC file.

因此​​,这里有实际的问题:

So, here are the actual questions:

我在思想正确,可以在Web服务器上生成一个报告时,你有RDLC的报告文件格式?或者我应该使用RDL呢?

Am I correct in the thinking that a report can be generated on the webserver when you have RDLC as the report file format?Or should I use the RDL instead?

如果我部署我的RDLC(本地报表)应用,课程在 Web服务器上,将它正常工作?是否有可能安装或安装获得在Web服务器上的报表查看器

If I deploy my application with RDLC (Local Report), of-course on the web server, will it work fine? Is it possible to install or get the report viewer installed on the web server

当我应该使用RDLC RDL和时不。一个previous问题当超过RDL使用RDLC报告? ,但我希望在我的情况更简单的解释。

And when should I use an RDLC and RDL and when not. A previous question When to use RDLC over RDL reports?., but I am looking for a simpler explanation in my scenario.

推荐答案

RDL和RDLC格式,具有相同的XML模式。然而,在RDLC文件,一些值(如查询文本)被允许是空的,这意味着它们不会立即准备好发布到报表服务器。缺失值可以通过使用SQL Server 2008版本的报表设计器中打开RDLC文件中输入。 (您必须重命名 .rdlc 的.rdl 第一)。

RDL and RDLC formats have the same XML schema. However, in RDLC files, some values (such as query text) are allowed to be empty, which means that they are not immediately ready to be published to a Report Server. The missing values can be entered by opening the RDLC file using the SQL Server 2008 version of Report Designer. (You have to rename .rdlc to .rdl first.)

RDL文件与ReportViewer控件运行时完全兼容。然而,RDL文件不包含一些信息,ReportViewer控件的设计时间取决于用于自动生成数据绑定code。通过手动绑定数据,RDL文件可以在ReportViewer控件中。

RDL files are fully compatible with the ReportViewer control runtime. However, RDL files do not contain some information that the design-time of the ReportViewer control depends on for automatically generating data-binding code. By manually binding data, RDL files can be used in the ReportViewer control.

注意:ReportViewer控件不包含连接到数据库或执行任何查询逻辑。由分离出这样的逻辑,所述的ReportViewer已取得所有数据源,包括非数据库数据源兼容。然而,这意味着,当一个RDL文件由ReportViewer控件,在RDL文件中的SQL相关的信息被简单地由控制忽略。它是主机应用程序负责连接到数据库,执行查询和供给数据,以在ADO.NET数据表的形式ReportViewer控件。

Note: that the ReportViewer control does not contain any logic for connecting to databases or executing queries. By separating out such logic, the ReportViewer has been made compatible with all data sources, including non-database data sources. However this means that when an RDL file is used by the ReportViewer control, the SQL related information in the RDL file is simply ignored by the control. It is the host application's responsibility to connect to databases, execute queries and supply data to the ReportViewer control in the form of ADO.NET DataTables.

参考: http://forums.asp.net/t/1173578.aspx/ 1

另外,请检查:的http://dinesql.blogspot.com/2010/11/reporting-services-difference-between.html

这篇关于ASP.NET报告什么,如何以及何时使用RDLC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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