GetBitmap: IGxBitmap;
The GetBitmap method returns graphic image of the object.
To execute the example a created form, a button located on this form and named Button1, and the UiReport and ImageBox components named UiReport1 and ImageBox1 respectively are required.
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: