Giter Site home page Giter Site logo

Comments (8)

jmcnamara avatar jmcnamara commented on June 2, 2024

Thanks for the report. I'll take a look.

from rust_xlsxwriter.

jmcnamara avatar jmcnamara commented on June 2, 2024

You may already know this but for context a xlsx file is a collection of XML files in a zip container.

I can't find any issue in the XML file structure (although it is hard to be 100% sure since the files are massive).

I think it may be a zipwriter/zip issue. I was able to open the file by unzipping it and then rezipping it. The file is too big to upload here but you can create a rezipped version for testing like this:

unzip basic-full.xlsx -d basic-full

cd basic-full
find . -type f | xargs zip ../basic-rezipped.xlsx
cd ..

ls basic-rezipped.xlsx

Can you try generate the file like that and then open it. I was able to open it successfully (although it takes a while since the file is huge).

screenshot

from rust_xlsxwriter.

wcshds avatar wcshds commented on June 2, 2024

Thanks for your help. After rezipping the file, I can successfully open it now.

from rust_xlsxwriter.

jmcnamara avatar jmcnamara commented on June 2, 2024

I think you should submit this as a bug to zip.rs: https://github.com/zip-rs/zip/issues

Attach the links to the basic-full.xlsx and basic-rezipped.xlsx files and add the commands to create one from the other.

Explain that Excel complains about the first file but not when it is rezipped.

The issue is possibly related to: zip-rs/zip-old#23 (Update: it isn't)

from rust_xlsxwriter.

jmcnamara avatar jmcnamara commented on June 2, 2024

If you make the rezipped file available I can raise the bug report.

from rust_xlsxwriter.

wcshds avatar wcshds commented on June 2, 2024

Thanks!
basic-rezip.xlsx

from rust_xlsxwriter.

jmcnamara avatar jmcnamara commented on June 2, 2024

I've opened an issue in zip.rs for this: zip-rs/zip-old#388

I tried to do some analysis on the zip file but didn't get anywhere. Hopefully the zip.rs folk(s) will have a look.

I also noticed that there was a u32 overflow issue highlighted by your test program so I put a fix for that in v0.45.0 on crates.io.

from rust_xlsxwriter.

jmcnamara avatar jmcnamara commented on June 2, 2024

Closing in favour of zip-rs/zip-old#388

from rust_xlsxwriter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.