Results 1 to 2 of 2

Thread: Crystal Reports exportation Error (Urgent)

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2013
    Location
    Carmarthen
    Posts
    6

    Exclamation 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.

  2. #2
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    Re: Crystal Reports exportation Error (Urgent)

    Never used it, but I would point out that you have supplied a filename, but no path.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width