ReportStamp(Locale:LocaleCodeID):String;
ReportStamp[Prognoz.Platform.Interop.ForeSystem.LocaleCodeID]: System.String;
Locale. Language and regional parameters identifiers. The Locale parameter cannot be equal to LocaleCodeID.None.
The ReportStamp property determines the stamp type used to mark documents.
The property determines contents of the stamp that appears in the lower 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.
This property is relevant only on using mandatory method of access control.
To execute the example, add a link to the Metabase system assembly.
Sub Macro;
Var
policy: IMetabasePolicy;
security: IMetabaseSecurity;
Begin
security := MetabaseClass.Active.Security;
policy := security.Policy;
policy.ReportStamp(LocaleCodeID.Russian) := Department, type, org. &[DEPARTMENT] + #13 + #10 +
Copies: &[TOTAL_COPIES] + #13 + #10 +
Sheets per copy: &[SHEETS_PER_COPY];
security.Apply;
End Sub Macro;
After executing this example, stamp type is set for the Russian localization.
To execute the example, add a link to the ForeSystem system assembly.
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.ForeSystem;
...
Public Shared Sub Main(Params: StartParams);
Var
policy: IMetabasePolicy;
security: IMetabaseSecurity;
Begin
security := Params.Metabase.Security;
policy := security.Policy;
policy.ReportStamp[LocaleCodeID.lcidRussian] := Department, type, org. &[DEPARTMENT] + char.ConvertFromUtf32(13) + char.ConvertFromUtf32(10) +
Copies: &[TOTAL_COPIES] + char.ConvertFromUtf32(13) + char.ConvertFromUtf32(10) +
Sheets per copy: &[SHEETS_PER_COPY];
security.Apply();
End Sub;
After executing this example, stamp type is set for the Russian localization.
See also: