简体   繁体   English

从SSRS HTML 4.0报告格式生成Pdf,excel

[英]Generate Pdf, excel from SSRS HTML 4.0 report format

We have developed web application in MVC 5.0. 我们已经在MVC 5.0中开发了Web应用程序。 We are using SQL Server Reporting Services and we are render report without using reportviewer we render it into HTML 4.0 format. 我们正在使用SQL Server Reporting Services,并且在不使用reportviewer的情况下呈现报表,而是将其呈现为HTML 4.0格式。

Now we want to generate this SSRS report output into pdf and excel format on button click of pdf and excel. 现在,我们要在单击pdf和excel的按钮时将生成的SSRS报告输出转换为pdf和excel格式。 How can we do that? 我们该怎么做?

You could use the "URL Access Parameters" that are built into SSRS to generate the report in the appropriate format. 您可以使用SSRS内置的“ URL访问参数”以适当的格式生成报告。

See documentation here: 请参阅此处的文档:

https://msdn.microsoft.com/en-us/library/ms152835(v=sql.110).aspx https://visualstudiomagazine.com/articles/2016/07/01/integrating-sql-server.aspx https://msdn.microsoft.com/zh-cn/library/ms152835(v=sql.110).aspx https://visualstudiomagazine.com/articles/2016/07/01/integrating-sql-server.aspx

Build the URL to the report using the ' &rs:Format ' parameter and hook that up to your corresponding buttons. 使用' &rs:Format '参数构建报告的URL,并将其挂接到您的相应按钮上。

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

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