ITabObjectExporter.GetBitmap

Syntax

GetBitmap: IGxBitmap;

Description

The GetBitmap method returns graphic image of the object.

Example

Executing the example requires a form with the Button1 button located on it, and the UiReport and ImageBox components named UiReport1 and ImageBox1 respectively.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Obj: ITabObject;
    Exp: ITabObjectExporter;
Begin
    Obj := UiReport1.Report.ActiveSheet.Table.Objects.Item(0);
    Exp := New TabObjectExporter.Create;
    Exp.Object := Obj;
    ImageBox1.Image := Exp.GetBitmap;
End Sub Button1OnClick;

When the button is clicked, a graphic image of the first object, located on the active sheet of the regular report, loaded to the UiReport1 component, will be loaded to the ImageBox1 component.

See also:

ITabObjectExporter