SSRS : Programmatically generating a report

情到浓时终转凉″ 提交于 2020-01-14 05:01:11

问题


In a .net application, how can I generate a report and save it as some type of a file (preferably a pdf)? Is it possible? Also, is it possible to send a couple of parameters that the report needs?

I am able to add a web reference to ReportingServices2010.asmx and query the report for properties. (It returns just the name of report as a property). But not sure how to proceed further?


回答1:


Yes, it is fairly simple. Using the ReportExecutionService.Render method you can render the report however you want. We've used this to run reports and attach them to emails automatically.

The MSDN site has some code to get you started.



来源:https://stackoverflow.com/questions/21429387/ssrs-programmatically-generating-a-report

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!