Consultor Eletrônico



Kbase P100297: Crystal Reports: Error occurred while accessing component property/method:OpenReport
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   21/01/2005
Status: Unverified

SYMPTOM(s):

Error occurred while accessing component property/method:OpenReport

There was a hardware error.

Error code: 0x80020009 <ProcedureName>. (5890)

Running an application using Crystal Reports ActiveX control.

Application includes code similar to:
DEF VAR chCRapplication AS COM-HANDLE NO-UNDO.
DEF VAR chCRreport AS COM-HANDLE NO-UNDO.
CREATE "CrystalRuntime.Application" chCRapplication.
CREATE "CrystalRuntime.Report" chCRreport.
chCRreport = chCRapplication:OpenReport("C:\somepath\Customer.Rpt").

CAUSE:

The Crystal Report (.RPT) file path was hard coded and pointing to the wrong location.

FIX:

Ensure that the Crystal Report (.RPT) file exists and is in the code specified location.