Comments (8)
注释掉golang 源码里这几行就解决了
from xlsx.
Note that this is a problem of xlsx v1.0.5 not the v3 version.
from xlsx.
There are potential problems with legacy code and go1.2.1 around the use of init functions - I'm going to start looking there.
from xlsx.
Another piece of information - I ran the code above (fixing the variable name rowOfferName
to rowName
), it compiled, ran and the output loaded fine in LibreOffice. I suspect that this is one of those occasions where Excel is extremely picky about the XML (it wants the XML exactly as it would write it, and won't accept it in any other logically valid form). I don't have Excel to hand, but if you send me the working and not-working xlsx files I can try and work out what changed between them. @givsly-stephen
from xlsx.
@givsly-stephen - if you're in fact using V3 you should try the latest release as I have recently fixed an issue with similar results. (See #786 )
from xlsx.
Yes, I was using github.com/tealeg/xlsx v1.0.5
see my go.mod
OK - I will take a look at v3.
It's funny though it works perfectly with golang 1.20, but fails with 1.21 -- did golang break compatibility???
from xlsx.
Yeah, I did think so. Moving to V3 would require quite a lot of changes on your front, but it's likely to be better maintained going forward.
from xlsx.
Stale issue message
from xlsx.
Related Issues (20)
- 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
- how to set cell custom type as yyyy/mm/dd hh:mm:ss HOT 1
- XLSX files produced by this library need recover by Microsoft Excel when open it. HOT 19
- 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 2
- It appears that Cell.GetTime() is returning an incorrect time. HOT 1
- addNumfmt() in xmlStyle.go seems to be wrong HOT 1
- Changing value HOT 1
- Excel to PDF Page size issue HOT 3
- v3 version proposal HOT 2
- Memory leak HOT 1
- (Question) Conditional cell formats
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.