|
-
Sep 4th, 2002, 04:39 AM
#1
Thread Starter
Frenzied Member
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
-
Sep 4th, 2002, 04:49 AM
#2
Fanatic Member
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
-
Sep 4th, 2002, 04:58 AM
#3
Thread Starter
Frenzied Member
Hi pvbangera,
I've been looking there aswell but can't find a solution.
Thanks anyway.
Anyone else????
-
Sep 4th, 2002, 07:43 AM
#4
Thread Starter
Frenzied Member
Need to copy over to client machine & register:
ExportModeller.dll
Crtslv.dll
Crxf_pdf.dll
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|