Name: String;
Name: String;
The Name property returns value of the &[NAME] substitution, which can be used in marking stamp.
The &[NAME] substitution can be filled in only from application code on creating a repository connection.
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(Null) As 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.
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 object marking on export and print is enabled on the safety level corresponding to the report. The specified procedure is an entry point for the .NET assembly.
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Drawing;
Imports Prognoz.Platform.Interop.Report;
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
Doc: IGxDocument;
GxLabel: IGxDocumentLabel;
Begin
MB := Params.Metabase;
Doc := MB.ItemById["Report_1"].Open(Null) As IGxDocument;
GxLabel := Doc.Label;
System.Diagnostics.Debug.WriteLine("Full name, phone: " + GxLabel.Name);
System.Diagnostics.Debug.WriteLine("Department: " + GxLabel.Department);
End Sub;
On executing the example the console window displays stamp margins used for marking.
See also: