Results 1 to 18 of 18

Thread: Failed to export report ERROR

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    182

    Failed to export report ERROR

    I m trying to export a report (9) through a vb application but i keep getting this error. can any one tell me what is the problem

    thanks

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Failed to export report ERROR

    You are going to have to provide more information if you want help. What database, what is the error, and try to post some of your code.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    182

    Help plz Failed to export report ERROR

    the code is as follows
    VB Code:
    1. Private Sub LoadCheckSheet()
    2.     'On Error GoTo ConnHandler
    3.    
    4.     Set crystal = New CRAXDRT.Application
    5.     Set Report = New CRAXDRT.Report
    6.    
    7.     CRViewer.DisplayTabs = False
    8.     CRViewer.EnableDrillDown = False
    9.     CRViewer.EnableRefreshButton = False
    10.     CRViewer.EnablePrintButton = True
    11.     CRViewer.EnableExportButton = True
    12.     CRViewer.DisplayGroupTree = False
    13.    
    14.     conn.Open ConnectionString
    15.    
    16.     rs.Open "SELECT * FROM OrderTableSummary", conn, adOpenStatic, adLockReadOnly
    17.          
    18.     Set Report = crystal.OpenReport(App.Path & "\CrystalReports\testing.rpt")  'OPEN OUR REPORT
    19.     'On Error GoTo LoadError
    20.    
    21.     Report.DiscardSavedData                      'CLEARS REPORT SO WE WORK FROM RECORDSET
    22.     Report.Database.SetDataSource rs             'LINK REPORT TO RECORDSET
    23.     CRViewer.Refresh
    24.    
    25.     CRViewer.ReportSource = Report              'LINK VIEWER TO REPORT
    26.     CRViewer.ViewReport                         'SHOW REPORT
    27.      
    28.     Report.Exportoptions.DestinationType = 1
    29.     Report.Exportoptions.FormatType = 31
    30.     Report.Exportoptions.DiskFileName = "c:\my.pdf"
    31.     Report.Export True
    32.  
    33.     Do While CRViewer.IsBusy              'ZOOM METHOD DOES NOT WORK WHILE
    34.        DoEvents                          'REPORT IS LOADING, SO WE MUST PAUSE
    35.     Loop                                  'WHILE REPORT LOADS.
    36.      
    37.     CRViewer.Zoom 94
    38.    
    39.     rs.Close                            'ALL BELOW HERE IS CLEANUP
    40.     Set rs = Nothing
    41.      
    42.     conn.Close
    43.     Set conn = Nothing
    44.      
    45.     Set crystal = Nothing
    46.     Set Report = Nothing
    47.    
    48.     Exit Sub
    49.    
    50. LoadError:
    51.    
    52.     MsgBox "Application Error: 200! An Email would be sent to notify the System Administrator of the problem!", vbCritical, "BIOSOFT - Message!"
    53.     conn.Close
    54.     Set conn = Nothing
    55.        
    56. ConnHandler:
    57.     MsgBox "Application Error: 400 Not Connected To DataBase", vbCritical, "BIOSOFT - Message!"
    58.    
    59. End Sub
    SQL server 2000 at the back..but i just dont know what is the main problem..i have read the other threads but when i try to use the information ..it gives me this error..and i am not running ona client machine.








    Edit: Added [vbcode][/vbcode] tags for more clarity. - Hack
    Last edited by Hack; Nov 28th, 2005 at 06:58 AM.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    182

    Re: Failed to export report ERROR

    can anyone plz help me

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    182

    Re: Failed to export report ERROR

    I have tried to export even from the crystal report 9 software but i get the message report export failed...i register the xport modeler and cltsv.dll file too..which it register but when i tried to register crx_pdf.dll..something like that it fails..i dont know what is the problem..its strange that it is not exporting from the development machine where the crystal report is installed.

  6. #6
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Failed to export report ERROR

    Oh. You are trying to run it on a different machine? Check out the application deployment forum. RobDog888 has posted a few times about what is required to deploy an app with CR. I think there's a help file or something that lists dependencies that you have to have on the machine.

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    182

    Re: Failed to export report ERROR

    Well i m not deploying it for now. What i am doing is that i have installed crystal report 9 on the my machine. I create a report in crystal report 9 and when in that i export it it gives me the error failed to export report..i reinstalled it and even then i m getting the error.. so that means that the dll file is not registerd..what can i do to solve it

  8. #8
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Failed to export report ERROR

    I'm not sure, because I don't have CR. Did you install from the original CD? Did you uninstall it before re-installing?

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    182

    Re: Failed to export report ERROR

    i can export it in html now cause when i try to do it it install some files so it does in xml and html and with each type of export now it appers a non 1 that means that it can be exported in that format but for adobe it does not..so do you think i have to install it all over again and make sure that it installs every bit of it. i just figure this out. do you think the same.
    Last edited by kamran; Nov 28th, 2005 at 01:42 AM.

  10. #10
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Failed to export report ERROR

    Make sure that you un-install it first. I would also use Add/Remove Programs to do both steps. Things seem to work best this way, rather than just using the CD. Do a FULL INSTALL. I agree.

  11. #11

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    182

    Re: Failed to export report ERROR

    i have done everyting but i cannot export it from the crystal report designer

  12. #12
    New Member
    Join Date
    Feb 2008
    Posts
    1

    Re: Failed to export report ERROR

    The following are the PDF Export DLL's required to successfully have Crystal Reports 8.5 create a PDF file:
    1. crtslv.dll
    2. crxf_pdf.dll
    3. crxf_rtf.dll
    4. ExportModeller.dll
    5. u2ddisk.dll
    6. u2dpost.dll
    7. u2fcr.dll
    8. u2fhtml.dll
    9. u2fwordw.dll
    10. u2fxls.dll
    11. u2fxml.dll

    Files that need to registered on the local system:
    1. c:\winnt\system32\crtslv.dll
    2. c:\winnt\system32\ExportModeller.dll

  13. #13
    New Member
    Join Date
    Jan 2009
    Posts
    2

    Re: Failed to export report ERROR

    I am having this problem as well, but only on a Vista machine that has Adobe 9 installed. If I run the same program from Windows XP with Adobe 9 installed, I do not get the error.

    We are running Crystal XI Release 2 w/SP2 RDC methods in our VB6 code.
    We have distributed the runtime components for CRXIR2 using the merge modules. I checked both the Windows XP machine and the Vista machine.
    All of the PDF Export DLL's with the exception of u2fhtml.dll, u2fwordw.dll and u2fxls.dll are installed on both machines. They all reside in C:\Program Files\Common Files\Business Objects\3.0\bin and the crtslv.dll and exportmodeller.dll are registered on both machines although they are only located in the C:\Program Files\Common Files\Business Objects\3.0\bin folder not the system32 folder. The placement of these files (and registering) is done by the runtime merge modules; we do not manually install the files.

    We are running against a SQL database using stored procedures as the main datasource. The report contains several subreports (all having stored procedures as their main datasource). Some of these subreports have only a sql image in them (we are pulling it from our database). We print some of these images based on an input parameter for the report. It is when the user requests these images to print (again based on the input parameter) that the report fails with the error:
    Error in Crystal Report: Failed to export the report.

    This error occurs only when we try to Export as a PDF.

    I have tried deleting and re-adding the subreport as well as removing the image and placing it on the subreport again. All to no avail.

    Does anyone have some ideas?

    Thank you.

  14. #14
    New Member
    Join Date
    Jan 2009
    Posts
    2

    Re: Failed to export report ERROR

    I am having this problem as well, but only on a Vista machine that has Adobe 9 installed. If I run the same program from Windows XP with Adobe 9 installed, I do not get the error.

    We are running Crystal XI Release 2 w/SP2 RDC methods in our VB6 code.
    We have distributed the runtime components for CRXIR2 using the merge modules. I checked both the Windows XP machine and the Vista machine.
    All of the PDF Export DLL's with the exception of u2fhtml.dll, u2fwordw.dll and u2fxls.dll are installed on both machines. They all reside in C:\Program Files\Common Files\Business Objects\3.0\bin and the crtslv.dll and exportmodeller.dll are registered on both machines although they are only located in the C:\Program Files\Common Files\Business Objects\3.0\bin folder not the system32 folder. The placement of these files (and registering) is done by the runtime merge modules; we do not manually install the files.

    We are running against a SQL database using stored procedures as the main datasource. The report contains several subreports (all having stored procedures as their main datasource). Some of these subreports have only a sql image in them (we are pulling it from our database). We print some of these images based on an input parameter for the report. It is when the user requests these images to print (again based on the input parameter) that the report fails with the error:
    Error in Crystal Report: Failed to export the report.

    This error occurs only when we try to Export as a PDF.

    I have tried deleting and re-adding the subreport as well as removing the image and placing it on the subreport again. All to no avail.

    Does anyone have some ideas?

    Thank you.

  15. #15
    Junior Member
    Join Date
    May 2009
    Posts
    29

    Thumbs up Re: Failed to export report ERROR

    I am running version 8.6 of Crystal Reports developer. At some point in time, clients reported that PDF exports just quit working. Of course I could not duplicate the problem on the development box. I'm not sure what caused it...maybe XP SP3? After wasting a lot of time this is what finally worked for me.

    1. Install Crystal Reports SP3
    2. Install Crystal Reports hot fix package DBEXDRVRWIN_EN_200401.EXE
    3. Make sure the that the client computer has version 8.6.2.440 of ExportModeller.dll
    4. Make sure the that the client computer has version 8.6.1.726 of crtslv.dll

  16. #16
    New Member
    Join Date
    Aug 2009
    Posts
    2

    Re: Failed to export report ERROR

    alweis, I have not been able to find DBEXDRVRWIN_EN_200401.EXE hotfix file or the correct versions of ExportModeller.dll and crtslv.dll. Do you have a link where these files can be downloaded?

  17. #17
    Junior Member
    Join Date
    May 2009
    Posts
    29

    Thumbs up Re: Failed to export report ERROR

    Greg,

    I have put the file on line at this location.

  18. #18
    New Member
    Join Date
    Aug 2009
    Posts
    2

    Re: Failed to export report ERROR

    Thanks! That fixed my problem.

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