Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 808 Bytes

excel.replacePicture.md

File metadata and controls

25 lines (18 loc) · 808 Bytes

Excel.replacePicture

The replacePicture function is established to replace an image shape that exists on the excel. Only XSSF(xlsx,xlsm).

Sample

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

API

CallingReturning
Excel . addShapeInRange ( sheetName , shapeName , newPicturePath )Excel
ParametersTypeDescription
sheetNameStringThe template sheet name.
shapeNameStringThe name of the copied shape.
newPicturePathStringThe image file path relatived to the storage folder.