Consultor Eletrônico



Kbase P63210: Crystal Reports 9 Runtime PrintOut method fails with error "Logon failed" (5890)
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   07/02/2005
Status: Verified

FACT(s) (Environment):

Progress 8.3E
Progress 9.1D
OpenEdge 10.x
Crystal Reports 9

SYMPTOM(s):

Crystal Reports 9 Runtime PrintOut method fails with error "Logon failed" (5890)

Error occurred while accessing component property/method: PrintOut.
Logon failed.
Error code: 0x80020009 USER-INTERFACE-TRIGGER <Path>. (5890)

Accessing a dynamic report (data is not stored in the report file)

CAUSE:

No login information supplied in the code for the ODBC DSN connection.
Login information is always required if a Crystal report needs to refresh data

FIX:

Add the LogOnServer method to the code, supplying the relevant ODBC DSN information:

chApplication:LogOnServer("p2sodbc.dll", "<ODBC DSN Name>", "", "<Username>", "<Password>").