IGxDocumentLabel.Name

Syntax

Name: String;

Description

The Name property returns value of the &[NAME] substitution, which can be used in marking stamp.

Example

Executing the example requires that the repository contains a regular report with the Report_1 identifier. Mandatory access control is enabled in the repository. The objects marking on export and print is enabled on the safety level corresponding to the report.

Sub UserProc;
Var
    MB: IMetabase;
    Doc: IGxDocument;
    GxLabel: IGxDocumentLabel;
Begin
    MB := MetabaseClass.Active;
    Doc := mb.ItemById("Report_1").Open(NullAs IGxDocument;
    GxLabel := Doc.Label;
    Debug.WriteLine("Full name, phone: " + GxLabel.Name);
    Debug.WriteLine("Department: " + GxLabel.Department);
End Sub UserProc;

On executing the example the console window displays stamp margins used for marking.

See also:

IGxDocumentLabel