Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 688 Bytes

excel.replacePicture.md

File metadata and controls

22 lines (16 loc) · 688 Bytes

Excel.replacePicture

The replacePicture function is used to replace an image shape that exists in the Excel file. This function is only available for XSSF (xlsx, xlsm) files.

Sample

var excel = new Excel("test.xlsx");
excel.replacePicture("Sheet1","picture1","templates/tanaka.png");

API

Calling Returning
excel. replacePicture ( sheetName, shapeName, newPicturePath ) Excel
Parameters Type Description
sheetName String The sheet name.
shapeName String The name of the shape (picture) to replace.
newPicturePath String The image file path relative to the storage folder.