IPrxDataIslandNaming.Placement

Syntax

Placement: PrxNamingPlacement;

Description

The Placement property determines positions of numbers of rows or columns with respect to dimensions' and headings' names.

Example

Executing the example requires that the repository contains a report with the Report identifier. A report should contain data area.

Connect the Metabase, Report system assemblies.

Sub UserProc;
Var 
    Mb: IMetabase;
    Numb: IPrxDataIslandNumbering;
    DataIsl: IPrxDataIsland;
    Rep: IPrxReport;
    Header: IPrxDataIslandHeader;
    Name: IPrxDataIslandNaming;
Begin
    Mb := MetabaseClass.Active;
    Rep := Mb.ItemById("Report").Edit As IPrxReport;
    DataIsl := Rep.DataIslands.Item(0).Edit;
        Header:=DataIsl.Properties.LeftHeader;
        Numb := Header.Numbering;
        Numb.IsOn := True;
        Name := Numb.Naming;
        Name.Placement := PrxNamingPlacement.BeforeDimension;
        Name.PlaceArrangement := PrxNamingPlaceArrangement.SingleRowColumn;
        Name.AutoIndent := TriState.OnOption;
        Debug.write(Name.IsAutoIndent.ToString);
        Name.Style.BackgroundColor := GXColor.FromName("Red");
    DataIsl.Save;
    Rep.Recalc;
   (Rep As IMetabaseObject).Save;
End Sub UserProc;

After executing the example autonumbering in the column placed before dimension name will be enabled, numbering cell background will be red. The attribute of row autonumbering will be displayed in the console.

See also:

Report Assembly Interfaces