SpreadsheetLight is an open source Open XML spreadsheet .NET library written in C#, and is released under the MIT License. You can create new Open XML spreadsheets, or work with existing Open XML spreadsheets that are compatible with Microsoft Excel 2007/2010/2013 and LibreOffice Calc. No Office/Excel Interop needed. You do not need Microsoft Office/Excel to be installed. This is a fork of the original code designed to run on .NET Core. It also includes OS platform checks so that code requiring Windows will not execute on other platforms. Some features may not work on non-Windows platforms.
$ dotnet add package SpreadsheetLight.Cross.PlatformThis project is a fork of the SpreadsheetLight library.
The purpose of this fork is to create a version of the library that runs on .NET Core and is also capable of running in cross-platform environments.
The library uses System.Drawing.Common, which required some platform checks to ensure those code sections only run on Windows machines. This does mean that certain features will not work on other platforms, these features will typically silently fail. Identified so far:
.InsertPicture()As of version 10.0.0, SpreadsheetLight Cross Platform has adopted a new versioning scheme that aligns its major version with the .NET major version it targets. This change is intended to provide better clarity and consistency with regard to supported frameworks.
Going forward, the major version of SpreadsheetLight Cross Platform will correspond to the major version of .NET it targets (e.g., SpreadsheetLight Cross Platform 10.x.x targets .NET 10). The minor and patch versions are used for library-specific updates and do not map to .NET's minor or SDK versions.
These instuctions can be used to acquire and implement the library.
To use this library either clone a copy of the repository or check out the NuGet package
Here are some examples, there are more in the examples directory. You can run all of them by executing the Test-Examples.ps1 PowerShell script found in that directory.
This project is licensed under the MIT License - see the LICENSE file for details
Thank you to: