New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
excelize对已经存在的xlsx文件调用NewSheet()时会可能导致与打开的xlsx文件存在相同的sheetId,用Excel 2013打开时提示错误! #249
Comments
Thanks for your issue. Please provide file attachments If you can. |
// 代码为utf-8字符集 import ( func main(){
} test.xlsx是用Excel 2013生成的合法文件,test_bad.xlsx是上述代码另存的文件。 sheetId="11" 出现两次。 我的水平有限,但修改代码之后Excel打开没有报错了。 |
I have fixed this issue. Please upgrade lib to the last version. |
用excelize打开存在的 xlsx文件(里面已经存在多个worksheet时),再次使用NewSheet函数增加新的工作表是,xl\workbook.xml原数据中可能会导致存在相同的sheetId=""数值。
例如,新增ICT_DT_SRC名称的worksheet之后,发现sheetId="14"的存在两个。Excel2013打开时提示错误。虽然可以自动修复。
The text was updated successfully, but these errors were encountered: