Documentazione HotXLS

AddPicture metodo

Inserts a picture shape into the worksheet at the specified cell coordinate o as a free-floating image

Sintassi

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

Esempio

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