Placing imgs IN cells #2334
Unanswered
ReniIrinyi
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I guess you mean having this option in excel I'm also curious if the library provides support for it? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use the following code to save the signatures. The library is great, and the code works, but I can't get the image to "grow" with the cell, or at least to be placed in the cell. In any case, it will be placed on the cell. I'm a beginner, maybe I'm missing something, or is there some prop I don't know about? Thanks in advance for your help!
async function addImageToCell( dataRow, imageBuffer, columnIndex, workbook, sheet ) { try { const imageId = workbook.addImage({ buffer: imageBuffer, extension: "png", }); sheet.addImage(imageId, { tl: { col: columnIndex, row: dataRow.number }, ext: { width: 120, height: 120 }, editAs: "oneCell", }); } catch (error) { console.error("Error adding image to cell:", error); return; } }
Beta Was this translation helpful? Give feedback.
All reactions