/
HotXLS-dokumentation

Metod AddPicture

Infogar en bildfigur i kalkylbladet vid den angivna cellkoordinaten eller som en fritt flytande bild

Syntax

function AddPicture(FileName: WideString): TXLSPicture; overload; function AddPicture(FileName: WideString; ARow, ACol: Integer): TXLSPicture; overload; function AddPicture(Bitmap: Graphics.TBitmap; Transparent: Boolean = False): TXLSPicture; overload; function AddPicture(Bitmap: Graphics.TBitmap; ARow, ACol: Integer; Transparent: Boolean = False): TXLSPicture; overload;

Exempel

This example adds a picture to the first worksheet at row 5, column 2


Workbook.Sheets[1].Shapes.AddPicture('c:\images\logo.png', 5, 2);