Giter Site home page Giter Site logo

Comments (6)

lieszkol avatar lieszkol commented on May 23, 2024 1

I believe some of these problems were cause by two independent changes in the code since 4.0.5. Specifically, if you have named "column" ranges of the style "$A:$C" (or just "A:C"), and called InsertRows, then that would result in a corrupt workbook. Similarly, if you have named "row" ranges and inserted columns the corruption would occur.

I've created a pull request to fix the issue: #289

from epplus.

hunty avatar hunty commented on May 23, 2024

Same problem. Opening file with LibreOffice, WPSOffice doesn't reproduce error, but Excel finds some corrupted data, then recovers file (successfully).
I work with EPPlus 4.1.1.0
Ver. 4.0.5 works filne

from epplus.

DSchueck avatar DSchueck commented on May 23, 2024

Same problem for us. We are doing the same template Excel file approach to generate new files. Also tried simply taking a good Excel file, doing no updates, and just getting the byte array. Both approaches result in the same error message about a corrupted file when using version 4.1.1. We downgraded to version 4.0.5 and everything worked fine.

from epplus.

michalpenka avatar michalpenka commented on May 23, 2024

Downgrading to 4.0.5 didn't solve problem for us. I can reproduce this on 4.0.3, 4.0.5, 4.1.1 and even 4.5.0.2-rc.

To work around this bug we need to save the package into stream and then get the byte array out of it ourselves.

from epplus.

radikale avatar radikale commented on May 23, 2024

Don't know if it's the same problem that you guys have but i was using Epplus 4.1.0 and my problem didn't get solved by downgrading. Only tested until version 4.0.5.
I noticed that if i deleted some formulas in the original file, when exporting the file didn't get corrupted.
I was duplicating rows and thought EPPlus was trying to copy some formulas in those rows, and for some reason the formulas were corrupted.
What i have found is that if i have merged cells, if those cells have formulas, the file gets corrupted.
My example:
image

When i deleted the bottom formula, and merged the cells again, i could duplicate and export the file in Epplus and the file didn't get corrupted!! It solved my problem.

from epplus.

nsemikov avatar nsemikov commented on May 23, 2024

Want it!

from epplus.

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.