ReportStamp(Locale:LocaleCodeID): String;
Locale. Language and regional parameters identifier. The parameter must not be set to None.
The ReportStamp property determines the stamp type that is used to mark documents.
The property determines contents of the stamp that appears in at the bottom right corner on the last page of the document: Printed:, Name and tel.:, Department, type, org., Copies: <number>, Sheets per copy: <number of pages>, Date.
The property is relevant only on using mandatory access control method.
To execute the example, add a link to the Metabase system assembly.
Sub UserProc;
Var
MB: IMetabase;
MS: IMetabaseSecurity;
Isa: IMetabaseUser;
Policy: IMetabasePolicy;
Lic: Object;
Begin
MB := MetabaseClass.Active;
// Check out license to work with security manager
Lic := MB.RequestLicense(UiLicenseFeatureType.Adm);
MS := MB.Security;
Policy := MS.Policy;
// Enable the use of mandatory access control method
Policy.MandatoryAccessControl := True;
// Set marking stamp
Policy.ReportStamp(LocaleCodeID.Russian) := "Department, type, org. &[DEPARTMENT]" + #13 + #10 +
"Copies: &[TOTAL_COPIES]" + #13 + #10 +
"Sheets per copy: &[SHEETS_PER_COPY]";
// Save changes
MS.Apply;
// Check in license
Lic := Null;
End Sub UserProc;
After executing the example the mandatory access control method use will be activated and the stamp type will be specified for Russian.
See also: