Is it possible with SSRS 2008 to export a .pdf that has a dynamic name based on today's date?

一笑奈何 提交于 2019-12-11 06:57:18

问题


I want to generate a report each day and then export that to a .pdf on a network drive. However, I don't want to overwrite the current data. Instead, I'd like something like this to happen each day:

ExportedReport_1242012.pdf for today

ExportedReport_1252012.pdf for tomorrow

etc.

Is this possible?


回答1:


Yes, it is. You could set this report up as a subscription if @Timestamp in the filename is OK, or a data driven subscription if the date formats are critical.

See this thread for more info: http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/81f47009-946a-4ebc-be43-7690236e829b




回答2:


Use @timestamp in the name of the report. For example ExportedReport_@timestamp.pdf



来源:https://stackoverflow.com/questions/8991673/is-it-possible-with-ssrs-2008-to-export-a-pdf-that-has-a-dynamic-name-based-on

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