ExportLatestReport
Associated with: Crystal Reports.
If a report has historic storage enabled, more than one generated copy of the report might be stored on the server.
Use the ExportLatestReport method to either:
- Export the latest generated copy of the report to a file on disk. The selected file is exported in Crystal Reports format (rather than any export format that is specified on the Export Format tab of the report’s configuration Form).
Or:
- Return the content of the latest generated copy of the report, so that, for example, the content of that report can be saved on the client’s disk.
Arguments:
- Filename (String)—Specify the destination file name, including the full path of the location to which file is to be exported from the main server.
To return the content of the latest generated copy of the report, specify an ‘empty’ variant (rather than an empty string) for this argument.
Returns:
- The ExportLatestReport method returns a byte array containing the content of the latest generated copy of the report if the Filename argument is an ‘empty’ variant. (No File information is returned if Filename is used to specify a file name.)