简体   繁体   English

Visual Studio 2017中的Microsoft Rdlc报表设计器

[英]Microsoft Rdlc Report Designer in Visual Studio 2017

I am Microsoft Rdlc Report Designer extension and NuGet ReportViewerControl.Winform package. 我是Microsoft Rdlc Report Designer扩展和NuGet ReportViewerControl.Winform包。

Now it is possible to open *.rdlc file in Visual Studio 2017 designer, but when i try to save my report i am getting error: "Unknown Report Version: 9.0 现在可以在Visual Studio 2017设计器中打开* .rdlc文件,但是当我尝试保存报表时出现错误: “未知报表版本:9.0

Also, i can't create empty *.rdlc file because don't have the same template in New File... dialog 此外,我无法创建空* .rdlc文件,因为在新文件...对话框中没有相同的模板

在此输入图像描述


UPD: UPD:

At this moment, i have no idea how to fix that, but i know hwo to avoid it: this一刻,我不知道如何解决,但我知道藿避免

Open your old report in VS2015 and then save it - next time VS2017 can open/edit/save files. VS2015中打开old报告然后保存 - 下次VS2017可以打开/编辑/保存文件。

Answer from marketplace : 来自marketplace回答:

This happens when you have missed a reference. 错过参考时会发生这种情况。 Please search through all of your code and project files to find the 9.0 references and update to 14.0. 请搜索所有代码和项目文件以查找9.0引用并更新到14.0。

By Sql Reporting Services 25.04.2017 由Sql Reporting Services提供25.04.2017

It means that you need to search for patterns (previous xml structure) of 9.0 version in your *.rdlc file, which was not obvious for me . 这意味着您需要在* .rdlc文件中搜索9.0版本的模式(以前​​的xml结构)这对我来说并不明显

That is why resave in VS2015 worked. 这就是为什么在VS2015中重新启动的原因。

I have found that opening SSRS 2005 layouts from the Solution Explorer causes this error. 我发现从解决方案资源管理器中打开SSRS 2005布局会导致此错误。 If I close Visual Studio, open File Explorer, find the .RDLC and double-click on it top open VS 2017 without the project loaded, I can convert and save the file. 如果我关闭Visual Studio,打开文件资源管理器,找到.RDLC并双击它顶部打开VS 2017没有加载项目,我可以转换并保存文件。 Once it's converted and saved, I can work with it normally inside VS. 一旦它被转换并保存,我就可以在VS内正常使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM