IMetabasePolicy.ReportStamp

Fore Syntax

ReportStamp(Locale:LocaleCodeID):String;

Fore.NET Syntax

ReportStamp[Prognoz.Platform.Interop.ForeSystem.LocaleCodeID]: System.String;

Parameters

Locale. Language and regional parameters identifiers. The Locale parameter cannot be equal to LocaleCodeID.None.

Description

The ReportStamp property determines the stamp type used to mark documents.

Comments

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.

Fore Example

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.

Fore.NET Example

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:

IMetabasePolicy