在Visual Studio 2017中更改RDLC报表的RDL版本 [英] Change RDL version for RDLC Reports in Visual Studio 2017

查看:511
本文介绍了在Visual Studio 2017中更改RDLC报表的RDL版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用.NET Framework 4的Visual Studio 2017中有一个项目.对于报告,我使用RDLC设计器,但是有问题.设计人员使用RDL 2016创建报告,我需要您使用2010定义.

I have a project in Visual Studio 2017 with .NET Framework 4. For reports I use the RDLC designer, but I have a problem. The designer creates the reports using RDL 2016 and I need you to use the 2010 definition.

我可以配置吗?

我需要它,因为该程序必须与Windows XP兼容,并且没有支持Windows XP RDL 2016的ReportViewer Runtime.

I need it since the program has to be compatible with Windows XP and there is no ReportViewer Runtime that supports RDL 2016 for Windows XP.

推荐答案

我遇到了同样的问题,但是如果执行了新报告,就可以了,新报告已创建并保存在旧模式中: xmlns ="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition". (使用文本编辑器查看的报告)

I had the same problem, but if a did a new report it was all right, the new report was created and saved with the old schema: xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition". (report viewed with a text editor)

当我添加参数并重新保存时,VS将模式转换为 新架构: xmlns ="http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition"

When I added a parameters and re-saved, VS turned the schema in new schema: xmlns="http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition"

但是我找到了一种适用于Windows XP的解决方案:

But I found a solution that work also with Windows XP:

我安装了使用VS 2017操纵报表所需的所有必要组件(在Visual Studio 2017中都是外部插件),然后更改了我的项目的引用,并对该DLL进行了2个新引用:

I install all necessary to manipulate the report with VS 2017 (in Visual studio 2017 are all external plug-in), then change the reference of my project e take 2 new referenze to this DLL:

1)

.. \ project \ packages \ Microsoft.ReportingServices.ReportViewerControl.Winforms.140.340.80 \ lib \ net40 \ Microsoft.ReportViewer.WinForms.dll

..\project\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.140.340.80\lib\net40\Microsoft.ReportViewer.WinForms.dll

2)

.. \ project \ packages \ Microsoft.ReportingServices.ReportViewerControl.Winforms.140.340.80 \ lib \ net40 \ Microsoft.ReportViewer.Common.dll

..\project\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.140.340.80\lib\net40\Microsoft.ReportViewer.Common.dll

之后所有的工作.

此DLL的新版本同时处理旧模式"和新模式"

This new version of DLL handle both "old schema" and "new schema"

这篇关于在Visual Studio 2017中更改RDLC报表的RDL版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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