Returns the active document. The active document is the one you are working on.

syntaxSyntax:
DlxApp.GetActiveDocument()

Return Value

Returns the object corresponding to the active document. Call the IsValid() method to determine if the object is valid.

Example

  Copy codeCopy code
if (DlxApp.GetActiveDocument().IsValid())
{
  DlxApp.Trace("Active document: %s", DlxApp.GetActiveDocument().GetName());
}

See also