ITabObjectExporter.Width

Syntax

Width: Integer;

Description

The Width property determines the width, which the exported image of the object will have.

Example

Sub Main;

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 Main;

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