IEaxAnalyzerCore.ViewOrder

Syntax

ViewOrder(Index: Integer): IEaxObject;

Parameters

Index. Express report object index.

Description

The ViewOrder property sets the order, in which the objects are displayed in express report window and printed. The numeration is executed from left to right.

Fore Example

Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier. Add links to the Metabase and Express system assemblies.

Sub Main;
Var
      MB: IMetabase;
      MObj: IMetabaseObject;
      Expr: IEaxAnalyzer;
Begin
      MB:=MetabaseClass.Active;
      MObj:=MB.ItemById(
"EXPRESS_REPORT").Edit;
      Expr:=MObj 
As IEaxAnalyzer;
      Expr.ViewOrder(1):=Expr.Grid 
As IEaxObject;
      MObj.Save;
End Sub Main;

 

After executing the example the express report window shows the table that contains express report data at the left (if Horizontal data view arrangement is selected) or at the top (if Vertical arrangement is selected). The page which contains the table (data grid) will be the first when printed.

Fore.NET Example

Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier. Add a link to the Express system assembly.

Imports Prognoz.Platform.Interop.Express;

...

Public Shared Sub Main(Params : StartParams);
    Var
        MB: IMetabase;
        MObj: IMetabaseObject;
        Expr: IEaxAnalyzer;
    Begin
        MB:= Params.Metabase;
        MObj:=MB.ItemById["EXPRESS_REPORT"].Edit();
        Expr:=MObj As IEaxAnalyzer;
        Expr.ViewOrder[1]:=Expr.Grid As IEaxObject;
        MObj.Save();
    End Sub;

After executing the example the express report window shows the table that contains express report data at the left (if Horizontal data view arrangement is selected) or at the top (if Vertical arrangement is selected). The page which contains the table (data grid) will be the first when printed.

See also:

IEaxAnalyzeCore