[英]how to use rdl/rdlc in my asp.net project to generate a report?
I have a web application which will use MS ReportViewer. 我有一个将使用MS ReportViewer的Web应用程序。 I have another team create a rdl file for me.
我有另一个团队为我创建一个rdl文件。 I renamed the rdl to rdlc and added to my project.
我将rdl重命名为rdlc并添加到我的项目中。 And I created a DataSet1.xsd to get the data needed by this rdlc.
我创建了一个DataSet1.xsd来获取此rdlc所需的数据。 In my aspx page, I added a ReportViewer control, and set its report property to the rdlc file.
在我的aspx页面中,我添加了一个ReportViewer控件,并将其report属性设置为rdlc文件。
My questions are: 我的问题是:
(1) Is it possible to edit the rdl/rdlc in vs2008? (1)是否可以在vs2008中编辑rdl / rdlc? When I open it, it is opened as a xml file.
当我打开它时,它将作为xml文件打开。
(2) how do I assign the dataset1 to the data source property of the ReportViewer control? (2)如何将dataset1分配给ReportViewer控件的数据源属性? When I right click the reportviewer, select the choose data sources, the dataset1 was not listed.
当我右键单击reportviewer时,选择选择数据源,未列出dataset1。 Do I have to do this in the code behind?
我必须在后面的代码中执行此操作吗?
(3) I got following error The report definition is not valid. (3)我收到以下错误报告定义无效。 Details: The report definition has an invalid target namespace 'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition' which cannot be upgraded.
详细信息:报表定义具有无效的目标命名空间“http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition”,无法升级。
Ans.. 答..
Mr. Limbani has done a good job answering issues 2 and 3. I believe your first problem may have to do with Business Intelligence Design Studio not being installed on your development PC. Limbani先生在回答第2和第3个问题方面做得很好。我认为您的第一个问题可能与未在开发PC上安装的Business Intelligence Design Studio有关。 See this question and answer for more details.
有关详细信息,请参阅此问题和答案 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.