Consultor Eletrônico



Kbase P100074: Errors 5884 and 5677 when using Crystal ActiveX Report Viewer Control 10.0
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   14/01/2005
Status: Unverified

FACT(s) (Environment):

Progress 9.1D
Progress 9.1E
OpenEdge 10.0x
Crystal Reports 10
Windows

SYMPTOM(s):

Crystal ActiveX Report Viewer Control 10.0

Trying to view Crystal report via 4GL

Errors 5884 and 5677 are generated

Invalid component-handle referenced while processing method/statement: <method or statement name>.
<COM message>
<Program Name> (5884)

Unable to set com-handle property. (5677)

Code was originally created using an older version of the Crystal Viewer control

CHANGE:

Upgraded from earlier version of Crystal Reports Crystal Reports 10

CAUSE:

The default Name of the control has changed between Crystal versions. The default Name of the viewer control in Crystal Reports 10 has changed to CrystalActiveXReportViewer.

FIX:

1) Change the name of the control. Double-click on the Viewer control and change the Name attribute to match the Name used in the code.
For example, if the code was similar to the following then the Name of the control should be changed to CRViewer9:

chCtrlFrame:CRViewer9:EnableNavigationControls = TRUE.


2) Change the code to match the Name of the viewer. With reference to the example above, CRViewer9 should be changed to CrystalActiveXReportViewer to become:

chCtrlFrame:CrystalActiveXReportViewer:EnableNavigationControls = TRUE.