Results 1 to 4 of 4

Thread: RESOLVED --> Error while exporting a crystal report

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2001
    Posts
    1,384

    RESOLVED --> Error while exporting a crystal report

    I am getting the following error when trying to export a crystal report to PDF format.
    Run-time error '-2147190908 (80047784)'
    Failed to export the report

    It works fine on my machine, but the error occurs when running on clients machine. I know the problem isn't with the code but with some .dll file.
    Code:
     
    Crystal.ReportFileName = strPath & "Quote.rpt" 
    Crystal.DataFiles(0) = strPath & "QuoteSystem.mdb" 
    Crystal.SelectionFormula = "{Quote.QuoteNo} = " & cboQuoteNo.Text 
    Crystal.PrintFileName = QuoteLocation & ".rpt" 
    Crystal.PrintFileType = crptCrystal 
    Crystal.Destination = crptToFile 
    Crystal.PrintReport 
    
    Dim CRXApplication As Object, CRXReport As Object, _ 
    CRXExportOptions As Object 
    
    Set CRXApplication = CreateObject("CrystalRuntime.Application") 
    Set CRXReport = CRXApplication.OpenReport(Crystal.PrintFileName) 
    Set CRXExportOptions = CRXReport.ExportOptions 
    CRXExportOptions.FormatType = crEFTPortableDocFormat 
    CRXExportOptions.DestinationType = crEDTDiskFile 
    CRXExportOptions.DiskFileName = Left(Crystal.PrintFileName, Len(Crystal.PrintFileName) - 3) & "pdf" 
    CRXReport.DisplayProgressDialog = False 
    CRXReport.Export False 
    Set CRXExportOptions = Nothing 
    Set CRXReport = Nothing 
    Set CRXApplication = Nothing 
    
    rsQuoteHdr!FileLocation = Left(Crystal.PrintFileName, Len(Crystal.PrintFileName) - 3) 
    rsQuoteHdr.Update 
    lbLoc.Caption = rsQuoteHdr!FileLocation 
    
    Kill Crystal.PrintFileName
    Last edited by mel_flynn; Sep 4th, 2002 at 07:44 AM.
    Mel

  2. #2
    Fanatic Member pvbangera's Avatar
    Join Date
    Sep 2001
    Location
    Mumbai, India
    Posts
    961
    hi,

    there is also a tech forum of crystal reports. visit the following link. hope u will find ur solution.

    Crystal Reports Tech Forum

    regards,
    prakash

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2001
    Posts
    1,384
    Hi pvbangera,

    I've been looking there aswell but can't find a solution.
    Thanks anyway.

    Anyone else????
    Mel

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2001
    Posts
    1,384
    Need to copy over to client machine & register:

    ExportModeller.dll
    Crtslv.dll
    Crxf_pdf.dll
    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