Export separate pdfs from SSRS generated report

自闭症网瘾萝莉.ら 提交于 2019-12-06 06:44:23

You would be able to do all of what you want in SSRS - if you have the Enterprise edition that has Data-Driven Subscriptions.

https://msdn.microsoft.com/en-us/library/ms159150(v=sql.130).aspx

You would have a parameter for the grouping (your page-break) - for example UserID.

In your data-driven query (NOT the report but a different query used to fire the subscription), you would have a field for your grouping - your UserID in our example. Another field could have your ReportName that is derived from your data - ex.

UserID, 'ReportName for ' + UserName + ' on ' + GetDate() as ReportName

When the data-driven query runs, it will create a record for each UserID which in turn will fire a report for each UserID using it as the parameter to limit the report to just that userID. You could even have that report only e-mailed to that user.

There are ways to run data-driven subscritptions without the Enterprise Edition using SSIS but the do take a bit of work.

http://geoffbi.blogspot.com/2012/04/data-driven-subcriptions-in-standard.html

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