Dynamically create filename in SSRS 2008

后端 未结 5 2089
南旧
南旧 2021-02-20 03:14

I have been asked a couple times to change the file name dynamically in SSRS 2008. Example: ReportName_201101.RDL. The 201101 represents the execution date. Can this be accom

5条回答
  •  伪装坚强ぢ
    2021-02-20 03:41

    If you mean the filename when you export the report and also happen to be pulling it from the ASP.NET ReportViewer, you can set the name through the DisplayName property.

    ReportViewerControl.ServerReport.DisplayName = "ReportName_201101";
    

    or (if ProcessingMode is Local):

    ReportViewerControl.LocalReport.DisplayName = "ReportName_201101";
    

    For pretty much all other cases, Alison is right.

提交回复
热议问题