ReportViewer (RDLC)导出Excel或PDF无法打开问题

WebForms的ReportViewer提供了导出成EXCEL或者PDF的报表。(Reporting Services)

但是导出时报表会另存为 .xls[1] 或者 .pdf[1],导致文件无法直接打开。

这需要给ReportViewer设定一个DisplayName解决。

ReportViewer1.LocalReport.DisplayName = "REPORT_" + DateTime.Now.ToShortDateString();

http://blog.csdn.net/Splendour/archive/2009/01/06/3715415.aspx

原文地址:https://www.cnblogs.com/emanlee/p/1584694.html