Skip to content

[BUG] 这个excel打开之后再保存使用office excel打开会提示损坏 #32

@bleehome

Description

@bleehome

如题,demo.xlsx打开之后再write就会显示损坏
最终定位到是 A1 单元格有奇怪的样式(具体什么样式不清楚,最终用户的excel不停删除单元格定位出来的)

`
const ExcelJS = require('excelize');

(async()=>{
const workbook = new ExcelJS.Workbook();
const wb = await workbook.xlsx.readFile('demo.xlsx');
const sheet = wb.worksheets[0];
//这里对 sheet 单元格的write操作不是必须的
await output.xlsx'); //output.xlsx 用office excel打开会提示损坏
})();

`

demo.xlsx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions