I have just bought SAP Crystal Reports 2016 and I am using Microsoft Visual Studio 2015 with Crystal Reports for VS v184.108.40.2066 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?