IPrxDataIslandHeader.Behaviour

Syntax

Behaviour: PrxDataIslandHeaderBehaviour;

Description

The Behaviour property determines behavior of rows and columns when the data area is extended.

Example

Executing the example requires a regular report with the REPORT identifier, which contains data area.

Add links to the Metabase, Report system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Report: IPrxReport;
    DI: IPrxDataIsland;
    Prop: IPrxDataIslandProperties;
    THead: IPrxDataIslandHeader;
    Filter: IPrxDataIslandHeaderFilter;
Begin
    // Get repository
    MB := MetabaseClass.Active;
    // Get regular report
    MObj := MB.ItemById("REPORT_IPRXDATAISLAND_COPY1").Edit;
    Report := MObj As IPrxReport;
    DI := Report.DataIslands.Item(0).Edit;
    // Get area 
    Prop := DI.Properties;
    THead := Prop.TopHeader;
    THead.Behaviour := PrxDataIslandHeaderBehaviour.Fixed;
    DI.Save;
    // Save report   
    MObj.Save;
End Sub UserProc;

After executing the example the number of data area columns is fixed and remains the same when the data area is extended.

See also:

IPrxDataIslandHeader