Changing a cell value in a xlsl sheet while keeping the format nodejs

孤人 提交于 2019-12-11 05:30:33

问题


Title is what I'm trying to achieve. Basically I want to edit a existing excel sheet that is formatted with fonts/styles etc and keep those fonts/styles intact while changing a particular cells value.

I've tried using the xlsx npm module, I've been able to change the cell to the value I want and save the file, but when doing so all the style is lost.

I was wondering if you guys could give me any directions on what to try now.

I only want to use nodejs for this project.

Thanks guys.


回答1:


In documentation it says: The raw data is the only thing guaranteed to be saved. Formulae, formatting, and other niceties may not be serialized (pending CSF standardization) under writing options section.



来源:https://stackoverflow.com/questions/39765330/changing-a-cell-value-in-a-xlsl-sheet-while-keeping-the-format-nodejs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!