Consultor Eletrônico



Kbase P74275: Crystal Reports Error when calling logoffserver() while a report is running
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/16/2006
Status: Unverified

SYMPTOM(s):

Error occurred while accessing component property/method: logoffserver - unable to log off. This server is still in use by some report error code 0x80020009 (5890)

Calling the logoffserver method in cristal report OCX

CAUSE:

Further investigations with Cristal Report have to be done about the message "logoffserver - unable to log off. This server is still in use by some report error code 0x80020009".
Obviously, Crystal Report does not like to call logoffserver while a report is still running.

FIX:

One should probably check an attribute of the Crystal Report OCX before calling logoffserver to see if a report is being computed, or call a method to tell Crystal to abort.
Calling the method from 4GL with the NO-ERROR option to ignore the error will probably let the context of the OCX in a bad state and is therefore a bad idea.