www.gnostice.com 

 

EngineStatus property (TgtCustomDocumentEngine)

TgtCustomDocumentEngine

Top 

 

property EngineStatus: TgtEngineStatus;

 

Description

 

This property indicates the current status of the Engine.

 

TgtEngineStatus := (esNone, esStarted, esFinished, esCancelled, esError);

 

esNone

Initial state of the engine.

esStarted

if BeginDoc is invoked.

esFinished

if document creation finished.

esError

If some error accurs while creation.

esCancelled

If document creation is cancelled.

 

Example:

 

Delphi:

 

gtPDFEngine1.BeginDoc;

if gtPDFEngine1.EngineStatus = esStarted then

begin

// Call engines functions.

PlayMetafile(0, 0, LMetafile);

gtPDFEngine1.EndDoc;

end;

 

C++Builder:

 

gtPDFEngine1->BeginDoc();

if (gtPDFEngine1->EngineStatus == esStarted)

{

// Call engines functions.

PlayMetafile(0, 0, LMetafile);

gtPDFEngine1->EndDoc();

}