IPrxDataIsland.AdjustMode

Fore Syntax

AdjustMode: PrxAdjustMode;

Fore.NET Syntax

AdjustMode: Prognoz.Platform.Interop.Report.PrxAdjustMode;

Description

The AdjustMode property determines cell size autofit method.

Fore 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;
    DI: IPrxDataIsland;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById(
"REPORT").Edit;
    DI := (MObj 
As IPrxReport).DataIslands.Item(0).Edit;
       
// Set cell autofit mode - without cell autofit. 
        DI.AdjustMode := PrxAdjustMode.None;
    DI.Save;

    // Save report.
    MObj.Save;
End Sub UserProc;

After executing the example cell autofit mode without cell autofit of data area of the REPORT regular report is selected.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Report;

...

Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    DI: IPrxDataIsland;
Begin
    MB := Params.Metabase;
    MObj := MB.ItemById["REPORT"].Edit();
    DI := (MObj As IPrxReport).DataIslands.Item[0].Edit();
        // Set cell autofit mode - without cell autofit. 
        DI.AdjustMode := PrxAdjustMode.pamNone;
    DI.Save();
    // Save report.
    MObj.Save();
End Sub;

See also:

IPrxDataIsland