Comments (19)
@dablelv hi! This is quite a common error pattern, it usually means that some XML in the file is compliant with the standard, but not structured exactly as Excel would do it. The best debugging information you could give me is to save two versions of the generated file - one before and after it has been recovered. Comparing the XML in the xlsx files would give us a clue what it is that Excel doesn't like.
from xlsx.
@dablelv hi! This is quite a common error pattern, it usually means that some XML in the file is compliant with the standard, but not structured exactly as Excel would do it. The best debugging information you could give me is to save two versions of the generated file - one before and after it has been recovered. Comparing the XML in the xlsx files would give us a clue what it is that Excel doesn't like.
I found the same issue already commited many years ago. The issue link is #53. There has one before and after it has been recovered excel file. The previous issue has been closed, but the problem remains.
from xlsx.
@dablelv - it is unlikely that it's actually the same issue. The symptom is seen for any case where Excel expects the data it receives to follow an exact pattern than is more restrictive than the Office OpenXML standard. The only way for me to know what was wrong is to reproduce the exact case you hit (by having all of the code and the input data) or by having examples of the file before and after Excel has repaired it.
from xlsx.
@dablelv - it is unlikely that it's actually the same issue. The symptom is seen for any case where Excel expects the data it receives to follow an exact pattern than is more restrictive than the Office OpenXML standard. The only way for me to know what was wrong is to reproduce the exact case you hit (by having all of the code and the input data) or by having examples of the file before and after Excel has repaired it.
ok, here is the repaired before and after sample files.
xlsx_before_repaired.xlsx
xlsx_after_repaired.xlsx
I found that the repaired file's size is more than not repaired.
from xlsx.
@dablelv thanks! I'll try to take a look in the coming days.
from xlsx.
Stale issue message
from xlsx.
Stale issue message
from xlsx.
Related Issues (20)
- Shit library
- Security protection is recommended for functions OpenReaderAt and OpenFile. HOT 1
- The func (f *File) Save(path string) (err error) resource in the file.go file is leaked. HOT 1
- Resource leakage in the lib.go file HOT 2
- Can it support multiple drop lists? HOT 2
- oom err HOT 3
- Read the contents of an Excel file in batches using stream processing
- how to get the number of cells in a row
- RowLimit option truncating xml ignore xmlns prefix
- codecov.io reports needs activation HOT 1
- 不支持 go1.21 版本,麻烦给处理一下,谢谢 HOT 6
- Bug:Version v3 appendsheet is empty from the second sheet, v1.0.5 is normal HOT 6
- golang 1.21 incompatibility - Suddenly all my sheets are empty -- all projects HOT 8
- how to set cell custom type as yyyy/mm/dd hh:mm:ss HOT 1
- Using WPS to open the generated Excel border defaults to dashed lines. How to remove the dashed border HOT 4
- Fourth time a cell is set it won't be written to if it's not the last cell written to HOT 7
- Why cell.String() method returned datetime string contains double backslash? HOT 3
- It appears that Cell.GetTime() is returning an incorrect time. HOT 1
- addNumfmt() in xmlStyle.go seems to be wrong HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xlsx.