Symptom
- Using the export button of the DHTML viewer, the exported file takes on the name of the viewer control
- By default the viewer control is called CrystalReportViewer1
Reproducing the Issue
- Using VS .NET, display a report in the DHTML viewer
- Click the export button on the viewer's toolbar
- The exported file is given the name of the viewer control
Resolution
The following code will set the name of the exported report file
ReportDocument rd = new ReportDocument();
rd.Load(Server.MapPath("ReportUsageDetailByArea.rpt"));
CrystalReportViewer1.ID = "ReportUsageDetailByArea";
CrystalReportViewer1.ReportSource = rd;
Keywords
Forum Thread , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , How To
Product
Crystal Reports 2008 V1 ; SAP Crystal Reports XI R2