|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Friday, June 14, 2013 1:01 PM
Points: 2,582,
Visits: 3,555
|
|
Comments posted to this topic are about the item Dynamically name report/file export in SSRS
______________________________________________________________________
Personal Motto: Why push the envelope when you can just open it?
If you follow the direction given HERE you'll likely increase the number and quality of responses you get to your question.
Jason L. Selburg
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Wednesday, July 21, 2010 1:17 PM
Points: 1,
Visits: 9
|
|
I've been trying to figure out how to do this at work for ages!
Thanks a ton for the tip!
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Friday, May 24, 2013 5:18 AM
Points: 23,
Visits: 107
|
|
| I haven't done it myself, but I guess you could also dynamically configure the name if executing reports with rs.exe
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Monday, April 23, 2012 12:59 PM
Points: 12,
Visits: 165
|
|
| nice article...but one question..if we have to do the same thing at run time (means when user export the rport to pdf or excel) from the report viewer..is there any way to do this?
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Friday, September 28, 2012 6:27 AM
Points: 42,
Visits: 170
|
|
nice tip.. I have played around updating the subscriptions table also.. because we needed to email the same report to 70 users, by just changing one user parameter on the report. I dint want to crate 70 subscriptions, so created 1 email subscriotion which created a record in subscriptions table and also a agent job.
1) created a table to store the 70 userid & email 2) Then wrote a SP to loop and update the parameters & extensionsettings fields in the subscription table 3) Kick off the subscription using below statement after each update ReportServer.dbo.AddEvent @EventType='TimedSubscription', @EventData='asdasd-12sad-dsfas-dzfad-dfasdfsdfsd' 4) Wait a minute using "Waitfor Delay" 5) Updated the Agent job, commented the "ReportServer.dbo.AddEvent" in the job step and called the SP in that step.
So now the subscription throws an error when you try to edit from Report Manager, which is good because if somebody edits it, SSRS will update existing job with the addevent step. This works fine because if later I need to change email or add new users, I just need to add a record to the table.
Do you know of any other better way to do this??
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Friday, June 14, 2013 1:01 PM
Points: 2,582,
Visits: 3,555
|
|
Gaurav.Vinodkumar (3/22/2010) nice article...but one question..if we have to do the same thing at run time (means when user export the rport to pdf or excel) from the report viewer..is there any way to do this?
Not that I know of.. :-(
______________________________________________________________________
Personal Motto: Why push the envelope when you can just open it?
If you follow the direction given HERE you'll likely increase the number and quality of responses you get to your question.
Jason L. Selburg
|
|
|
|
|
SSCoach
         
Group: General Forum Members
Last Login: Today @ 5:03 PM
Points: 18,853,
Visits: 12,438
|
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Tuesday, March 19, 2013 1:21 AM
Points: 20,
Visits: 120
|
|
What about customer support?
From what I know, Microsoft will not support you, if you make modifications to the SSRS Catalog manually.
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Friday, June 14, 2013 1:01 PM
Points: 2,582,
Visits: 3,555
|
|
SQL-Student (3/22/2010) What about customer support?
From what I know, Microsoft will not support you, if you make modifications to the SSRS Catalog manually.
*grin* Don't tell them
______________________________________________________________________
Personal Motto: Why push the envelope when you can just open it?
If you follow the direction given HERE you'll likely increase the number and quality of responses you get to your question.
Jason L. Selburg
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Thursday, November 01, 2012 2:30 PM
Points: 3,
Visits: 16
|
|
Jason,
Did you know that in the subscription you could just set the filename to
@ReportName@ParameterName and it will save the report ?
|
|
|
|