Comments (6)
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.
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.
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.
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.
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:
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.
Want it!
from epplus.
Related Issues (20)
- INSERTROW System.ArgumentOutOfRangeException HOT 1
- Prevent index out of array bounds exception
- Exporting to excel shows date time value as UTC time while using EPPlus
- What is the status of this project? Is it still active? HOT 23
- NET Core doesn't support SignedCms yet.
- Does EPPLUS support Axis Title font format and series color change in scatterchart
- The type initializer for 'Gdip' threw an exception.Unable to load shared library 'libgdiplus' or one of its dependencies HOT 1
- Sumsq issue HOT 1
- Carriage return not retained
- Row_Delete doesn't delete the whole row
- .Net Core 3.0: use of foreach loop causes Excel file to balloon HOT 2
- Formula Calculation in 4.5.3.3 has bug after calculate call the cell value property return #Value HOT 4
- [NullReferenceException] ResetPageOffset HOT 1
- Don't work PrinterSettings with net core 3.1 HOT 1
- excelWorksheet.InsertRow NullReferenceException HOT 1
- Calculate() breaks the resulting value HOT 9
- Exception on loading xlsx having multiple `_xlnm.Print_Area`
- "Start cell Address must be less or equal to End cell address" Exception
- TokenHandler uses static TokenSeparatorHandler which ignores custom ITokenSeparatorProvider HOT 1
- Property Indexed of class ExcelColorXml always returns 0
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 epplus.