Consultor Eletrônico



Kbase P115720: Invalid component-handle referenced while Processing method/statement: . (5884)
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   01/05/2006
Status: Unverified

SYMPTOM(s):

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

Unable to set com-handle property. (5677)

Invalid component-handle referenced while processing method/statement: DestinationType.
USER-INTERFACE-TRIGGER <procedure-name> (5884)

Trying to assign the Export Destination Type Property of a Crystal Reports ExportOptions().

CAUSE:

The handle of the crReport:ExportOptions() property was not initialized and is not valid.

FIX:

Initialize the handle of the report's ExportOptions() property before using it for example:
crReportExport = crReport:ExportOptions().
crReportExport:DestinationType = 1.
crReportExport:FormatType = 3
crReportExport:DiskFileName = "C:\WRK\myReport.XML".