以分号分隔文件的SharePoint 2013导出报告

时间:2018-10-16 07:27:03

标签: sharepoint reporting-services sharepoint-2013

如何从SharePoint 2013中以分号csv文件导出报告。

我在SharePoint 2010中通过更改报表服务器来做到这一点,但是SharePoint 2013中的报表服务与SharePoint 2010不同。

如果您需要它: -我有2台服务器,一台用于SharePoint 2013,另一台是数据库服务器(mssql 2014)。

1 个答案:

答案 0 :(得分:0)

我在这里Adding a custom rendering extension to SQL Server Reporting Services 2012 for SharePoint 2010 integrated mode找到答案了

For Pipe delimited text format

-Sharepoint managemnt shell as Admin

-Run Get-SPRSServiceApplication to get GUID ID

-Run New-SPRSExtension -identity YOUR GUID ID -ExtensionType "Render" -name "TxtPipeDelimited" -TypeName "Microsoft.ReportingServices.Rendering.DataRenderer.CsvReport,Microsoft.ReportingServices.DataRendering" -ServerDirectives "<OverrideNames><Name Language='en-US'>TXT Pipe Delimited</Name></OverrideNames>" -ExtensionConfiguration "<DeviceInfo><FieldDelimiter>|</FieldDelimiter><NoHeader>true</NoHeader><FileExtension>txt</FileExtension><ExcelMode>False</ExcelMode><Encoding>ASCII</Encoding></DeviceInfo>"

-Run iisreset in Cmd line as admin(development server not production)

如果您需要删除标题,则将导出不包含标题的数据

<NoHeader>true</NoHeader>