Results 1 to 2 of 2

Thread: crystal report (urgent)

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    174

    crystal report (urgent)

    Hi all,
    how can i export data from crystal report 7.0 to .dbf format through code. it is urgent pls help
    Thanks in Advance

  2. #2
    Frenzied Member
    Join Date
    Nov 2001
    Posts
    1,384
    Here is the code to export a report to .pdf format, not sure if you can export to .dbf though
    Code:
    Dim CRExportOptions As Object
    Dim expfile As String
    Dim CApp As New CRAXDRT.Application
    Dim CReport As CRAXDRT.Report
    
        expfile = "C:\Test.rpt"
        Set CReport = CApp.OpenReport(expfile)
        
        CReport.EnableParameterPrompting = False
        CReport.DiscardSavedData
        CReport.ReadRecords
        
        Set CRExportOptions = CReport.ExportOptions
        CRExportOptions.FormatType = crEFTPortableDocFormat
        CRExportOptions.DestinationType = crEDTDiskFile
        CRExportOptions.DiskFileName = Left(expfile, Len(expfile) - 3) & "pbf"
        CReport.DisplayProgressDialog = False
        CReport.Export False
    Mel

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