arlm-keller / spreadsheetlight Goto Github PK
View Code? Open in Web Editor NEWMy fork of Vincent Tan's great Spreadsheet Light project http://spreadsheetlight.com
License: MIT License
My fork of Vincent Tan's great Spreadsheet Light project http://spreadsheetlight.com
License: MIT License
Compiling the source code? Create your own (Visual Studio?) solution/project and add these references: DocumentFormat.OpenXml (from the Open XML SDK) System System.Data System.Drawing System.Windows.Forms System.XML System.Xml.Linq WindowsBase Then drag and drop everything in the source code folder into your project. Compile. Have tea. You can get the latest release versions of SpreadsheetLight at http://spreadsheetlight.com/ You can send feedback, bug findings and goodwill at the website above. Or use this email address if you like: [email protected] I actually read emails. :) SpreadsheetLight uses the MIT License. There's a license.txt somewhere in your download. Basically you can do whatever you want with the source code and the library, provided that the author(s) [that's me] isn't/aren't liable for damages. Read the license for the full thing because this summary doesn't do it justice. Thanks for using SpreadsheetLight! With gratitude, Vincent Tan -=-=-=-=-=-=-=-=-=-=- Q) How come it doesn't come with the .sln solution and .csproj project files? Because SpreadsheetLight is originally a commercial product and I reserve the specific right to keep the strong name key. And the strong name key is indicated in the project file, which means I would have give the strong name key too. Also, I feel those files are extra, in that they detract from you reading the source code. That's what you want the source code for right? And the source code files are already arranged in such a manner that you can just drag and drop them into your own solution/project. If that's difficult, then I'd say reading the source code and understanding it would be harder. And also that SpreadsheetLight is designed for the end developer to use. Most of the time, this developer will just use the DLL and be done with it. He/She doesn't have time to learn the intricacies of Excel, let alone set up a source code project just to compile the code. There's already a precompiled DLL there! And also that I don't assume you're using Visual Studio. Who knows, maybe there'll be Mono support.
If I'm right, the mimetype of the generated document is always application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.
Can I provide it as a public const string?
Hi,
I do not know if there is hidden P-invoke in the Spreadsheet -> so that interface change manage to collapse OpenXml DLL, or if that is invoke inside OpenXml, that is crashing. So I am reporting this bug both in the OpenXml forum and SpreadsheetLight forum. The bug is very simple to reproduce -> problem is SpreadsheetLight Pivot reading with OpenXml version 3.0.0:
Managed Debugging Assistant 'FatalExecutionEngineError'
Název chybujícího modulu: clr.dll, verze: 4.8.9181.0, časové razítko: 0x64b8594f Kód výjimky: 0xc0000005 Posun chyby: 0x0001cca0 ID chybujícího procesu: 0x9b28 Čas spuštění chybující aplikace: 0x01da34a81bac4265 Cesta k chybujícímu modulu: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
With OpenXml version 2.20.0 there is no issue.
This crash is happening on the SLDocument creation from the stream:
using (Stream inputStream = fsHelper.GetStream()) { Stopwatch sw; using (MemoryStream ms = new MemoryStream()) { inputStream.CopyTo(ms); // load excel, and create a new workbook using (SLDocument sl = new SLDocument(ms))
My project is basic .NET Framework 4.7 DLL with the Spreadsheet reading class. I have upgraded OpenXml based on Nuget recommendation -> and that was a mistake. :)
Good morning,
I am trying to use the library in a .Net 6 project, but I am receiving the error:
System.InvalidProgramException: 'Common Language Runtime detected an invalid program.'
when instantiating a new SLDocument:
using (SLDocument sl = new SLDocument(File))
it is not compatible with .Net versions?
Thanks!
Calling the SaveAs or Save method returns Entries cannot be opened multiple times in Update mode."
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.