简体   繁体   English

使用Node.js将图像插入Excel工作表

[英]Inserting image into an excel sheet using Node.js

I am trying to programmatically insert images into a cell of an Excel sheet. 我试图以编程方式将图像插入Excel工作表的单元格。 All the images are located on my local machine. 所有图像都位于我的本地计算机上。 I was using msexcel-builder module but it doesn't seem to have the capability to insert image files into a cell. 我使用的是msexcel-builder模块,但它似乎没有能力将图像文件插入到单元格中。

After Googling around, I saw this post: PHP code can insert image to excel file and open it correctly in MS Excel? 谷歌搜索后,我看到这篇文章: PHP代码可以插入图像到Excel文件并在MS Excel中正确打开? but it's using PHP and I'd rather avoid it if I could. 但它使用的是PHP,如果可以的话,我宁愿避免使用它。

Are there any NPM modules out there that will allow me to do this? 是否有任何NPM模块允许我这样做?

Thanks, Colin 谢谢,科林

These are a few npm modules that support inserting images into an excel spreadsheet: 这些是一些支持将图像插入Excel电子表格的npm模块:

https://www.npmjs.com/package/libxl https://www.npmjs.com/package/excellent https://www.npmjs.com/package/excel4node https://www.npmjs.com/package/libxl https://www.npmjs.com/package/excellent https://www.npmjs.com/package/excel4node

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM