TreatSectionAsDocument: Boolean;
The TreatSectionAsDocument property determines whether to treat the object sections as separate documents while the document marking.
If the value is True, the object sections are treated as separate documents, if the value is False, they are not.
For the regular report the section is a separate sheet or text sheet, for the express report and workspace the section is the whole document.
Sub UserProc;
Var
MB: imetabase;
se: IMetabaseSecurity;
PO: IMetabasePolicy;
MA: IMetabaseMandatoryAccess;
Ctgr: ISecurityCategory;
SecLvl: ISecurityLevel;
Begin
MB := MetabaseClass.Active;
SE := MB.Security;
PO := SE.Policy;
MA := PO.MandatoryAccess;
Ctgr := MA.Category(0);
SecLvl := Ctgr.Level(1);
WinApplication.InformationBox(SecLvl.Name);
SecLvl.Description := "For office use"; //Level description
SecLvl.Marking := True; // To mark the objects when exporting and printing
SecLvl.TreatSectionAsDocument := True;
SE.Apply;
End Sub UserProc;
After executing the example the security level parameters are changed.
See also: