2

我尝试自动生成报告,我使用 Wonderware archestra。但是当我想生成和保存报告时我遇到了这个问题:

GenerateReport 中的异常:System.Web.Services.Protocols.SoapException:您尝试使用未为此报表服务器注册的呈现扩展插件,或者此版本的 Reporting Services 不支持该插件。---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException:您尝试使用未为此报表服务器注册或此版本的 Reporting Services 不支持的呈现扩展插件。在 Microsoft.ReportingServices.Library.ReportExecution2005Impl.InternalRender(String Format, String DeviceInfo, PageCountMode pageCountMode, Stream&Result, String& Extension, String& MimeType, String& Encoding, Warning[]& Warnings, String[]& StreamIds) 在 Microsoft.ReportingServices.Library .ReportExecution2005Impl.Render(字符串格式,

在我的报告中我有参数,2个日期时间,1个整数和1个字符串(对不起我的英语不好)如果有人可以帮助我解决我的问题,我将不胜感激

4

1 回答 1

3

我知道这是一个过时的问题,但它有很多观点,也许其他正在寻找类似问题解决方案的人会发现我的回答很有帮助。我已经为这个错误苦苦挣扎了一会儿。

介绍

Rendering extensions用于报告演示。它是报表服务器的一个组件或模块,可将报表数据和布局信息转换为特定于设备的格式。

SQL Server Reporting Services 包含几个呈现扩展插件:

  • HTML
  • Excel
  • 单词
  • CSV
  • 文本
  • XML
  • 图片
  • PDF格式

要确定哪些呈现扩展可用,您可以查看 RSReportServer.config 文件中已安装扩展的列表。在我的情况下,这个文件在下面C:\Program Files\Microsoft SQL Server\MSRS12.MSSQLSERVER14\Reporting Services\ReportServer并且它安装了大部分扩展。

在此处输入图像描述

问题描述和解决方案

在我的情况下,SSRS 报告生成工作。但是在我客户的机器上却没有。我们使用EXCELOPENXML. EXCELOPENXML我的客户的配置中没有条目。我设法发现这个扩展是 SQL Server 2012 中的新扩展,而我的客户使用的是 2008 R2 版本 -这就是原因- 类似错误说attempted to use a rendering extension that is either not registered for this report server or it is not supported in this edition of Reporting Services

EXCELOPENXML - SQL Server 2012 中新增的 Reporting Services Excel 呈现扩展插件,可将报表呈现为与 Microsoft Excel 2007-2010 以及 Microsoft Excel 2003 与 Microsoft Office 兼容包 for Word、Excel 和 PowerPoint 兼容的 Excel 文档安装。格式为 Office Open XML,文件扩展名为 XLSX。

我的情况的解决方案是将报告格式从更改EXCELOPENXML为较旧的渲染Excel

于 2018-11-07T13:15:41.163 回答