I have a report that I pass parameters of a clientID. I run the report and export it to a .pdf file. I would like to be able to do this for multiple clients without manually having to enter the ID each time and exporting it.
I have thought about creating a report that calls this report so that I can pass in the clientID one at a time. The problem is trying to export each one.
Does anyone have any ideas? Thanks in advance!
I beleive you can use the reportviewer.render method to export directly to a PDF. I've done a similar app going straight to printer.|||Let me quote myself from http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2048825&SiteID=1
Two methods come to mind:
1. You can run reports from the command line using the rs command (documentation) as described in the following SQLJunkies article:
http://sqljunkies.com/Article/B197B9E7-EF3D-4D70-9B5E-47B74E57EF38.scuk
which doesn't seem to be up for me so here is the Google cache link:
http://64.233.167.104/search?q=cache:XvoyQYWNs50Jqljunkies.com/Article/B197B9E7-EF3D-4D70-9B5E-47B74E57EF38.scuk&hl=en&gl=us&strip=1
Within the VB script that you run, query your tables and feed the parameters.
2. You could use a variant of a Data Driven Subscription. You will need the Enterprise version of SSRS to use Data Driven Subscriptions. Here is a tutorial on building one:
http://msdn2.microsoft.com/en-us/library/ms169673.aspx
I came accross this article by Jason Selburg which claims to allow you to build your own data driven subscriptions using Standard Edition:
http://www.sqlservercentral.com/columnists/jselburg/datadrivensubscriptions.asp
and his follow up:
http://www.sqlservercentral.com/columnists/jselburg/2824.asp
and I believe either method will work for you here. If you need a more specific answer, let me know.
Good luck,
Larry Smithmier
No comments:
Post a Comment