Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2004
    Posts
    2

    Question Unanswered: crystal 8 and crystal 9 exporting conflict

    hi all,
    I have two different applications on a machine. Both the applications use crystal viewers to view reports and they have been remotely deployed. Recently we upgraded one of the application to use the crystal 9 viewer (CRViewer9.dll) as we moved to CE9. The other application still uses Seagate Info 7.5 and crystal 8 viewer (CRviewer.dll).
    The viewing of the reports in the two different viewers is working fine but the problem comes when we are exporting the reports to different formats. If we deploy the new u2* dlls in System32, the crystal 9 export options are working but the crystal 8 application crashes while exporting.
    I guess that the Crystal 8 viewer dll cannot use the new u2* dlls.
    I know that having two applications with different crystal viewers is not advisable but it cannot be helped.
    Is there any workaround which will allow me to export with both these viewers.

    Thanks,
    Jim

  2. #2
    Join Date
    Apr 2004
    Posts
    4
    Hi I have the same problem,
    did you find solutions for yours?

  3. #3
    Join Date
    Apr 2004
    Location
    Germany
    Posts
    23
    There is an easy solution, move the cr dlls to the applications folder. I do it with every application I develop to get out of the dll hell.

    Windows applications are looking first in the application folders, than in system and at last within the registry.

  4. #4
    Join Date
    Apr 2004
    Posts
    2

    used RAS server for exporting

    hi ns_nataly,
    I decided not to use the CR9 exporting features from the CR9 viewer. In this way the existing CR8 modules were working fine with the old dlls. For CR9 exporting, I coded the CRViewer_exportButtonClicked event. When the user clicks on the export button, I open a windows dialog box where the filename and the export format can be specified. Using the initial instance id of the original report, I go to the server side and use the RAS Server to export the report in the user specified format.

    Here is the RAS code I used.

    Dim rptappfactory As Object
    Dim ReportClientDoc As Object
    Dim bytearr As Object
    Dim reportPath As String
    Dim ReportFileName As String
    Set rptappfactory = moIstore.EnterpriseSession.Service("", "RASReportFactory")
    Set ReportClientDoc = rptappfactory.OpenDocument(dJobId)
    Set bytearr = ReportClientDoc.PrintOutputController.Export(ceFor matRequired)
    bytearr.Save TestReportFileName, True

Posting Permissions

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