Skip to Content
Former Member
Aug 04, 2016 at 04:08 PM

SAP Crystal Reports For VS v13.0.17.2096 - Default Export Filename


I have just bought SAP Crystal Reports 2016 and I am using Microsoft Visual Studio 2015 with Crystal Reports for VS v13.0.17.2096 installed. I have built a webpage that contains the CrystalReportViewer control to display my report. My problem is when the user clicks Export from the toolbar the filename of the PDF is always defaulted "crViewer.pdf" which is the ID of the CrystalReportViewer control. I want to default the filename using a date and time stamp or some other known unique identifier, so the client can easily save them to their network folder.

I have tried using the following code:-

crViewer.ID = "Report_" + Format(Now, "yyyyMMdd_HHmm")

But this makes the control unstable. How do I default the export filename using the Export button from the Crystal Reports toolbar?