When exporting a report to another format, say excel; the file name is always set to the report name. Our client has a requirement where whenever a user exports a report to excel, the timestamp of when the data of the report was made should be appended in the filename. Is there a way to do this in Reporting Services as well as report builder?
Thanks,
JosephThere is no way to change the name of the export. You could set up a subscription to save the file off to a file. Not sure if that will sufficient or not for your scenario.
-Daniel|||
With Reporting Service 2005, you can create a data-driven subscription and set the FILENAME parameter.
Here is a sample query:
select 'bogus - ' + LEFT(DATENAME(month, getdate()),3) + ' ' + (CAST(DatePart(dd, GetDate()) as nvarchar) + ' ' + CAST(DatePart(yyyy, GetDate()) as nvarchar)) as FILENAME
Hope this helps!
Thanks.
|||I am not sure, but I recallData-Driven Subscription is part of SQL Server/Report Server 2005 Enterprise edition only
No comments:
Post a Comment