Coder Social home page Coder Social logo

Comments (8)

dtjohnson avatar dtjohnson commented on May 11, 2024

The 0.x version didn't use compression when outputting the file, which is why the file was huge. The 1.x version uses compression correctly.

If you are getting a corrupt file with the 1.x version, there must be some regression. Could you share the workbook?

from xlsx-populate.

bhavyams avatar bhavyams commented on May 11, 2024

Thanks for your quick response! I am afraid I cannot share the work book due to confidentiality. Do you have any other suggestions?

from xlsx-populate.

dtjohnson avatar dtjohnson commented on May 11, 2024

When you open the corrupt workbook in Excel does it ask you to try to recover? If so, click Yes. After recovering, it should show a window with a summary of the errors. Could you share what they window says?

Another option is the strip out any confidential information from the workbook and see if the generation still yields a corrupt workbook. If so, I could debug off of that.

from xlsx-populate.

bhavyams avatar bhavyams commented on May 11, 2024

The recovery window says:
Replaced Part: /xl/worksheets/sheet1.xml part with XML error. Load error. Line 18221, column 0.

from xlsx-populate.

dtjohnson avatar dtjohnson commented on May 11, 2024

That means there is something wrong with the generated XML in that first sheet. I'd need to see the content of that sheet1.xml before and after to figure out what is wrong. If there is nothing confidential in just that sheet I could explain how you can send me just the XML. If there is, you'll have to strip out the confidential data. I'm afraid there isn't much I can do without seeing it.

from xlsx-populate.

dtjohnson avatar dtjohnson commented on May 11, 2024

I just updated to v1.4.0 which fixed a bug in ordering data in the sheet XML. Try updating and see if that fixed your issue.

from xlsx-populate.

materazu avatar materazu commented on May 11, 2024

Think this is ok, after write over 300 cells, there is no change on size here ;)

from xlsx-populate.

bhavyams avatar bhavyams commented on May 11, 2024

I updated to 1.4.2 and things work great. The excel file is now about 350k after updating 3 cells. Also, I found out recently that there are hidden sheets in the excel. The 1.4.2 has solved all the issues. Thanks again for a wonderful library! :)

from xlsx-populate.

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.