简体   繁体   English

SSRS报告文件(.rdl)如何升级到最新?

[英]SSRS report files (.rdl) how to upgrade to latest?

I have been using Visual Studio 2010 for Reporting Services projects, with a SQL server 2012 reporting services back-end. 我一直在将Visual Studio 2010用于Reporting Services项目,并将其用于SQL Server 2012 Reporting Services后端。 To display the report we went from version 10,to 11 with the Reporting viewer in asp.net like so with no problems. 为了显示报告,我们使用了asp.net中的Reporting Viewer,从版本10升级到了11,没有问题。

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"
Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

 <rsweb:ReportViewer ID="ReportViewer03" runat="server" Font-Names="Verdana" 
                    Font-Size="8pt" Height="400px" ProcessingMode="Remote" Width="950px">
                    <ServerReport ReportPath="/ReportsProgram_YEAR8/Rpt03_SurveyCountsByLanguageMethod" 
                        ReportServerUrl="http://sql2012a/ReportServer_SQL2016" />
                </rsweb:ReportViewer>

Installing SQL Server 2016, and reporting services, and SQL Data Tools 2015 all went well. 安装SQL Server 2016,报表服务和SQL Data Tools 2015一切都很好。

i can change the version of the assembly above to 11.0 and the report will still render, fine the old looking way. 我可以将上述程序集的版本更改为11.0,并且该报告仍将呈现,可以采用旧的方式。

But when using Visual Studio 2015 or SQL Data Tools 2015 opening the old project file or individual .rdl files, did not prompt to upgrade like I am seeing on the internet. 但是,当使用Visual Studio 2015或SQL Data Tools 2015打开旧项目文件或单个.rdl文件时,没有像我在互联网上看到的那样提示升级。 As far as i remember there was no SQL Data Tools 2013 so I never had a chance to upgrade. 据我所知,当时还没有SQL Data Tools 2013,所以我再也没有升级的机会。

Anyway looking inside the report files, its obvious the xml tag has not been upgraded. 无论如何,在报表文件中查找时,显然xml标记尚未升级。 Not only that there the report has issues. 不仅报告存在问题。 (see screen shot below) (请参见下面的屏幕截图)

在此处输入图片说明

Now I have created a new report from scratch and the drop down does work for export and print, but the area below the toolbar with the two drop downs is still present with print, cancel and done. 现在,我从头开始创建了一个新报告,下拉菜单确实适用于导出和打印,但是带有两个下拉菜单的工具栏下方的区域仍然可以打印,取消和完成。 I have upgraded my ajaxtoolkit and everything. 我已经升级了我的ajaxtoolkit和所有内容。 I have no choice but to continue to use SQL Reporting Services 2012 (very sad) 我别无选择,只能继续使用SQL Reporting Services 2012(非常可悲)

Can anyone shed any light as to the issues? 任何人都可以对这些问题有所了解吗?

You need to be using report viewer 13 for working with SSRS 2016. It is available on nuget as a preview release. 您需要使用报表查看器13来使用SSRS2016。它在nuget上作为预览版提供。

Install-Package Microsoft.ReportingServices.ReportViewerControl.WebForms.Preview

https://blogs.msdn.microsoft.com/sqlrsteamblog/2016/09/23/embed-paginated-reports-into-asp-net-web-apps-using-the-report-viewer-2016-control/ https://blogs.msdn.microsoft.com/sqlrsteamblog/2016/09/23/embed-paginated-reports-into-asp-net-web-apps-using-the-report-viewer-2016-control/

If SQL Server Data Tools or SQL Server Management Studio for SQL 2016 is installed, make sure it's updated to the latest version. 如果安装了SQL Server数据工具或SQL Server SQL Server Management Studio SQL 2016,请确保将其更新为最新版本。 Earlier versions of SSDT incorrectly gac'ed certain dlls which conflict with the Report Viewer Control. 早期版本的SSDT错误地关闭了某些与Report Viewer控件冲突的dll。 You may need to manually delete the V13 dll's from \\windows\\assembly\\gac_msil to permanently remove them. 您可能需要从\\ windows \\ assembly \\ gac_msil手动删除V13 dll才能将其永久删除。

How to uninstall 如何卸载

gacutil /u "Microsoft.ReportViewer.WebForms, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" /f gacutil /u“Microsoft.ReportViewer.WebForms,版本= 13.0.0.0,区域性=中性,PublicKeyToken = 89845dcd8080cc91,processorArchitecture = MSIL” / f

gacutil /u "Microsoft.ReportViewer.WinForms, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" /f gacutil /u“Microsoft.ReportViewer.WinForms,版本= 13.0.0.0,区域性=中性,PublicKeyToken = 89845dcd8080cc91,processorArchitecture = MSIL” / f

gacutil /u "Microsoft.ReportViewer.WebDesign, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" /f gacutil / u“ Microsoft.ReportViewer.WebDesign,版本= 13.0.0.0,文化=中性,PublicKeyToken = 89845dcd8080cc91,processorArchitecture = MSIL” / f

gacutil /u "Microsoft.ReportViewer.Common, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" /f gacutil /u“Microsoft.ReportViewer.Common,版本= 13.0.0.0,区域性=中性,PublicKeyToken = 89845dcd8080cc91,processorArchitecture = MSIL” / f

If you get Unable to uninstall: assembly is required by one or more applications https://support.microsoft.com/en-us/kb/873195 如果您无法卸载:一个或多个应用程序需要组装https://support.microsoft.com/en-us/kb/873195

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

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