CrystalActiveXReportViewer and CRviewer.dll problems

xxxcapxxx

New Member
Hi all,
i am trying to understand what is wrong here. It simply stucks as it shall view the report. The ocx remains blank. and i get an error with CRViewer.dll. I checked the dll, it is registred correctly and i have admin right onto it.

here is my code .
If anyone could find where is my mistake,please tell :)

Code:
/*SESSION:IMMEDIATE-DISPLAY = FALSE.*/
 
    DEFINE VARIABLE crApplication   AS COM-HANDLE NO-UNDO.
    DEFINE VARIABLE crReport        AS COM-HANDLE NO-UNDO.
 
    CREATE "CrystalRuntime.Application" crApplication.
    CREATE "CrystalRuntime.Report"      crReport.
 
   /* Set the report object */
    crReport = crApplication:OpenReport("c:\temp\xml\Report1.rpt",1).
 
    crReport:DATABASE:Tables:Item(1):SetTableLocation("c:\temp\xml\inte.xml","","").
     crReport:DiscardSavedData().
    /*crReport:VerifyOnEveryPrint = TRUE.*/
 
     /* Enables the CRViewer's Navigation Controls */
    chCtrlFrame:CrystalActiveXReportViewer:EnableNavigationControls = TRUE.
    /* Enables the CRViewer's Export button */
    chCtrlFrame:CrystalActiveXReportViewer:EnableExportButton = FALSE.
    /* Disables the CRViewer's Search control */
    chCtrlFrame:CrystalActiveXReportViewer:EnableSearchControl = FALSE.
 
    /* Set the report source */
    chCtrlFrame:CrystalActiveXReportViewer:ReportSource = crReport.
 
    /* View the report */
    chCtrlFrame:CrystalActiveXReportViewer:ViewReport().
 
    RELEASE OBJECT crApplication.
    RELEASE OBJECT crReport.
    ASSIGN crApplication = ?
           crReport = ?
        .
    /*SESSION:IMMEDIATE-DISPLAY = TRUE.*/

sorry if i put it in the wrong part , but as it refers to database.
 
Top