The first example uses the ExportReport method to display the Export dialog box. The second example exports the file without displaying the Export dialog box. The third example specifies an ExportFormat object to use when exporting the report.
Private Sub ExportTheReport()
DataReport1.ExportReport , , True, True
End Sub
Private Sub ExportWithoutDialog()
' Export to a file named Output.htm, overwriting if needed.
DataReport1.ExportReport rptKeyHTML, "C:\Temp\Output", True, False
End Sub
Private Sub ExportMyReport()
' Export to a file named Daily.htm using the MyReport ExportFormat.
DataReport1.ExportReport "MyReport", "C:\Temp\Daily", True, False
End Sub