简体   繁体   English

我可以使用Reporting Services从标准的多页Excel模板生成Excel报告吗?

[英]Can I generate Excel reports from a standard, multi-sheet Excel template using Reporting Services?

I currently have SQL queries developed that fetch me the required data from my shared data source. 我目前开发了SQL查询,该查询从共享数据源中获取所需的数据。 Using reporting services, I'm displaying web reports with this data. 使用报表服务,我正在显示带有此数据的Web报表。

My requirement is to populate this data in an empty Excel template, and auto-mail these reports to a specific mail id, without clicking on Export to Excel. 我的要求是将这些数据填充到一个空的Excel模板中,并将这些报告自动发送到特定的邮件ID,而无需单击“导出到Excel”。 These reports are generated each day. 这些报告每天生成。

How do I do this? 我该怎么做呢? Is this even possible through Reporting Services? 通过 Reporting Services甚至可以做到吗?

You can tack on the format of the report in reporting services to the end of the report server link. 您可以将报表服务中报表的格式附加到报表服务器链接的末尾。 For instance, for PDF you can do: 例如,对于PDF,您可以执行以下操作:

rs:format=PDF

The example link would be: 示例链接为:

http://myreportSERVER/reportserver/NameOfReport&rs:Command=Render&rs:format=PDF

For excel it would be rs:format=EXCEL 对于excel,它将是rs:format=EXCEL

For emailing you can either use the rs web service to e-mail the reports or use the reporting services object model to deliver reports using the "subscriptions" section. 对于发送电子邮件,您可以使用rs Web服务通过电子邮件发送报告,也可以使用报告服务对象模型通过“订阅”部分提供报告。 This article may be a good start for you: http://msdn.microsoft.com/en-us/magazine/cc188712.aspx 本文对于您来说可能是一个好的开始: http : //msdn.microsoft.com/zh-cn/magazine/cc188712.aspx

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

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