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:
However the button fails to execute. The code keeps catching and throwing the exception, plus I keep getting the following following error message: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
Method not found: 'CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag CrystalDecisions.ReportAppServer.ReportDefModel.ISCRExportOptions.get_ExportOptionsEx()
Does anybody now how to combat this error.


Reply With Quote
