Open XML SDK
CsvBenchmarks
Our great sponsors
Open XML SDK | CsvBenchmarks | |
---|---|---|
23 | 12 | |
3,869 | 14 | |
1.6% | - | |
9.1 | 5.4 | |
6 days ago | 17 days ago | |
C# | C# | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Open XML SDK
-
Libcurl
While it doesn't appear to have been updated in many years, Microsoft built a similarly useful tool[1] that lets you browse the structure of a given Office document and see C# code that generates various components of it.
[1] https://github.com/dotnet/Open-XML-SDK/releases/tag/v2.5
-
Is it possible to use Microsoft Word features programatically?
If you use this check out the productivity tool, it will convert a word doc to csharp for you. https://github.com/dotnet/Open-XML-SDK/releases/tag/v2.5
-
Go library that supports extraction and generation of word documents with complex formulae, equations, tables and images.
You’re looking for OpenXML handling. C# probably has the best support, since there’s a Microsoft supported SDK - https://github.com/dotnet/Open-XML-SDK
-
If you had to pick a library from another language (Rust, JS, etc.) that isn’t currently available in Python and have it instantly converted into Python for you to use, what would it be?
https://github.com/dotnet/Open-XML-SDK Yeah, it can be kind of wrapped with pythonnet and stuff. But having it totally pyhtonized would be sooooo great.
- Creating a Web App using Excel
-
Count lines, words, and characters of a MS Word file? ( i.e. Test1.docx )
As an alternative, you could use the Powershell module Open-XML-SDK or PSwriteWord, or PSWriteOffice
-
OpenXml throws a different exception given identical code and similar build configuration for two distinct solutions. Why?
PackageLoader was introduced in https://github.com/OfficeDev/Open-XML-SDK/commit/522200f65b9182f65a112130f830403467f54936
-
Programatically replacing text in docx
In the official GitHub repository you will find similar tools listed, if you have a very particular requirement not fulfilled by OpenXML SDK.
-
Formatting issues from Mac to Windows
Or alternatively you can create a .NET application using the Open XML SDK that does the same thing.
-
Launch HN: Windmill (YC S22) – Turn scripts into internal apps and workflows
This looks amazing and I'd love to try it out for this one thing I have in mind.
I'm not familiar with the Deno part of Typescript. Would it somehow be possible to use a C# library as a dependency?
For example https://github.com/OfficeDev/Open-XML-SDK I need for a way to edit (not create) the openXML content of Microsoft Office files
CsvBenchmarks
-
CSV reader recommendations...
The Sylvan.Data.Csv library is also the fastest CSV parser for .NET, and can load data about 3x faster than MTD based on my limited testing.
-
What's the best way to read an Excel file into a DataGrid in WinUi 3?
I don't want to disparage NPOI, because I'm sure it's great for its primary use-case, which is creating/editing spreadsheets. However, from a performance perspective it is one of the slowest libraries for reading Excel data in .NET. Since the OP seemed to be very concerned about performance and only needs to read data, this probably isn't the best choice.
-
Help needed with .xlsb files
I'm pretty sure NPOI doesn't support .xlsb. At least it didn't the last time I updated my benchmarks: https://github.com/MarkPflug/Benchmarks/blob/main/docs/ExcelBenchmarks.md
-
How would I use an Excel file as Data Source for SQLite connection?
If you're trying to load an Excel worksheet into a DataTable, I maintain a library that can make this quite easy: Sylvan.Data.Excel. It is available as a nuget package, open source, MIT licensed, and the fastest Excel reader for .NET.
-
How to convert an Excel file to Data table
I maintain a library, Sylvan.Data.Excel that might work for you. I claim it is the fastest Excel library in the .NET ecosystem. It is open source and MIT licensed, so feel free to use it however you wish. It has no external dependencies other than .NET itself.
-
Read .xls, .xlsx files using interop and import to datatable
It provides a forward only data reader (DbDataReader) for all common excel formats (.xlsx, .xlsb, and .xls). It is the fastest and lowest allocating Excel reader in the .NET ecosystem.
-
Read uploaded excel file
This one is one that I personally maintain: Sylvan.Data.Excel It isn't fully featured, but it is the fastest that I'm aware of.
-
Microsoft .net XLSX to CSV library?
I maintain a couple libraries that should make this quite easy: Sylvan.Data.Csv, and Sylvan.Data.Excel. They are both open-source and MIT licensed. They are also both fastest-in-class at their particular tast.
-
Read Excel file in .NET 6 deployed on Linux?
It isn't exactly a full-featured library, but it is cross-platform and is the fastest and lowest allocating Excel reader that I'm aware of for .NET. That might not be a huge concern if you're just processing the occasional file.
-
The Fastest Csv Parser In Net
Thanks for this -- I've pushed a PR that corrects a slight incorrectness issue that biased the results in Cursively's favor, uses the original byte array directly instead of needlessly wrapping it in a MemoryStream, and uses the same optimization that you used to make SylvanSimplePool win in its category. CursivelyCsv is now the winner on my machine in this category when doPooling is on.
What are some alternatives?
ClosedXML - ClosedXML is a .NET library for reading, manipulating and writing Excel 2007+ (.xlsx, .xlsm) files. It aims to provide an intuitive and user-friendly interface to dealing with the underlying OpenXML API.
ExcelMapper - An Excel to object mapper. Maps POCOs to and from Excel. Configuration via convention, attributes, or fluent methods.
EPPlus
NPOI - a .NET library that can read/write Office formats without Microsoft Office installed. No COM+, no interop.
Sylvan.Data.Excel - The fastest .NET library for reading Excel data files.
ExcelDataReader - Lightweight and fast library written in C# for reading Microsoft Excel files
DocX - Fast and easy to use .NET library that creates or modifies Microsoft Word files without installing Word.
NetOffice - 🌌 Create add-ins and automation code for Microsoft Office applications.
Sylvan - A collection of .NET libraries, including the fastest general-purpose CSV parser for .NET.