ViewSize: IGxSizeF;
ViewSize: Prognoz.Platform.Interop.Drawing.GxSizeF;
The ViewSize property returns the express report object size.
Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier.
Add links to the Drawing, Express, Metabase system assemblies.
Sub Userproc;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Expr: IEaxAnalyzer;
Object: IEaxObject;
Begin
// Get express report
MB := MetabaseClass.Active;
MObj := MB.ItemById("EXPRESS_REPORT").Edit;
Expr := MObj As IEaxAnalyzer;
//Set object size
Object.ViewSize := New GxSizeF.Create(100, 100);
//Save
MObj.Save;
End Sub UserProc;
Imports Prognoz.Platform.Interop.Drawing;
Imports Prognoz.Platform.Interop.Express;
…
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
MObj: IMetabaseObject;
Expr: IEaxAnalyzer;
Object: IEaxObject;
View: GxSizeF = New GxSizeFClass();
Begin
// Get express report
MB := Params.Metabase;
MObj := MB.ItemById["EXPRESS_REPORT"].Edit();
Expr := MObj As IEaxAnalyzer;
Object := Expr.ViewOrder[0];
//Set object size
Object.ViewSize := View;
View.Create(100, 100);
//Save
MObj.Save();
End Sub;
After executing the example the express report object size is set.
See also: