Crystal Reports exportation Error (Urgent)
Hello. I have an application that utilises crystal reports and displays the report in the report viewer. I have written code that export the report into an excel file.
code:
Code:
Private Sub tsbtnExcel_Click(sender As System.Object, e As System.EventArgs) Handles tsbtnExcel.Click
Try
Dim CrExportOptions As ExportOptions
Dim CrDiskFileDestinationOptions As New DiskFileDestinationOptions()
Dim CrFormatTypeOptions As New ExcelFormatOptions()
CrDiskFileDestinationOptions.DiskFileName = "bakelist.xls"
CrExportOptions = cryRpt.ExportOptions
CrExportOptions.ExportDestinationType = ExportDestinationType.DiskFile
CrExportOptions.ExportFormatType = ExportFormatType.Excel
CrExportOptions.DestinationOptions = CrDiskFileDestinationOptions
CrExportOptions.FormatOptions = CrFormatTypeOptions
cryRpt.Export()
Catch ex As Exception
Throw (ex)
End Try
End Sub
However the button fails to execute. The code keeps catching and throwing the exception, plus I keep getting the following following error message:
Method not found: 'CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag CrystalDecisions.ReportAppServer.ReportDefModel.ISCRExportOptions.get_ExportOptionsEx()
Does anybody now how to combat this error.
Re: Crystal Reports exportation Error (Urgent)
Never used it, but I would point out that you have supplied a filename, but no path.