【发布时间】:2018-04-28 18:43:11
【问题描述】:
我在 Visual Studio 2017 中做了一个报告,在 VS 2013 和 VS 2015 中产生错误:
错误 119 此报告的定义无效或不受支持 此版本的 Reporting Services。报告定义可能有 是使用更高版本的 Reporting Services 创建的,或者包含 基于报告的格式不正确或无效的内容 服务模式。详细信息:报告定义的目标无效 命名空间 'http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition' 无法升级。 F:\项目\赢 Applications\ERP\ERP\DiERP\bin\Debug\Reports\Inventory\Ar280.rdlc 企业资源规划系统
那么有没有办法让 VS 2017 中的报告与早期版本的 VS 兼容。
我在文本编辑器中打开了文件并进行了更改: http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition
到
http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition
但它在 VS 中不起作用:
加载设计器时遇到一个或多个错误。下面列出了错误。
反序列化失败:命名空间中的元素“报告” 'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition' 命名空间中有无效的子元素“ReportSections” 'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition'。 预期的可能元素列表:'描述、作者、自动刷新、 数据源、数据集、正文、报告参数、代码、宽度、页面、 EmbeddedImages、语言、代码模块、类、自定义属性、 变量,DeferVariableEvaluation,ConsumeContainerWhitespace, DataTransform、DataSchema、DataElementName、DataElementStyle' 在 命名空间 'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition' 以及命名空间“##other”中的任何元素。第 115 行,位置 4。
【问题讨论】:
-
我不确定这与 VS 的版本有关——报告中使用的架构取决于您使用的 SSRS 版本。查看报表项目的属性时,目标服务器版本是什么意思?您所针对的 SQL Server 版本是什么?
-
什么报告项目?我只是将 *.rdlc 文件添加到 exe 项目中。而且我没有专门的报告项目,也没有在该项目的属性中找到 TargetServerVersion 的选项(我的谷歌搜索将该设置称为问题的解决方案,但我找不到它! )
-
您的问题和标签说的是 SQL Server 附带的 SSRS,而不是 RDLC 文件的“本地报告”。我不知道是否可以将更新的 RDLC 文件降级为旧 VS,但您可以尝试在 VS 2015 中更新您的报表查看器/报表设计器。
-
看起来这应该在 VS 2015 中完成。blogs.msdn.microsoft.com/sqlrsteamblog/2017/07/27/…
-
你能看一下这个链接吗 访问stackoverflow.com/questions/35922626/…
标签: visual-studio-2015 visual-studio-2017 rdlc reportviewer