ITabObjectExporter.Height

Syntax

Height: Integer;

Description

The Height property determines the height, the exported image of the object will have.

Example

Sub UserProc;
Var
    MB: IMetabase;
    Rep: IPrxReport;
    Exp: ITabObjectExporter;
    Obj: ITabObject;
Begin
    MB := MetabaseClass.Active;
    Rep := MB.ItemById("Reg_rep").Bind As IPrxReport;
    Obj := Rep.ActiveSheet.Table.Objects.Item(0);
    Exp := New TabObjectExporter.Create;
    Exp.Object := Obj;
    Exp.Height := 100;
    Exp.Width := 100;
    Exp.ExportToFile("c:\Object_1.bmp""BMP");
End Sub UserProc;

As a result the first object of the active sheet of the regular report will be exported to the Object_1.bmp file. The size of the resulting image is 100*100 pixels.

See also:

ITabObjectExporter