RDLC报告问题

本文关键字:问题 报告 RDLC | 更新日期: 2023-09-27 18:01:31

当我使用rdlc报告时,我得到一个编译错误,下面是错误:

报告定义具有无效的目标命名空间"http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition"

我使用Visual Studio 2010和SQL Server 2008。

RDLC报告问题

VS 2008只支持ReportViewer 2008,它只支持RDL 2005模式。在您列出的报告中声明的名称空间使用的是RDL 2008和RDL 2010。这些只与ReportViewer 2010及以上版本兼容,并且只有VS 2010具有对ReportViewer 2010和RDL 2008+模式的设计器支持。

尝试将名称空间更改为SQL Reporting Services 2008的名称空间

<Report xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner" xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition">