Trên GitHub, dotnet/Open-XML-SDK đã đạt 4.6k sao, ngôn ngữ C#. Open XML SDK by Microsoft
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
3.0.0 introduced breaking changes and you should be able to update your package and recompile with limited changes. Please see the v3.0.0 milestone for issues and PRs that were included.
[!IMPORTANT]
The CI feed URL has changed as of 2 April, 2024. Please update to the new URL if using CI builds.
The Open XML SDK is a framework for working with Microsoft Office Word, Excel, and PowerPoint documents. It includes APIs for low-level operations related to OPC packages, Flat OPC files, and Open XML markup in two forms (i.e., strongly-typed classes and LINQ to XML). It is designed to closely follow the Microsoft Office implementation of the ISO 29500 standard, but was not intended to directly provide higher-level abstractions or productivity tools.
These APIs enable scenarios such as:
High-performance generation of word-processing documents, spreadsheets, and presentations.
Document modification, such as adding, updating, and removing content and metadata.
Searching and replacing content using regular expressions.
Splitting up (shredding) a file into multiple files, and combining multiple files into a single file.
Updating cached data and embedded spreadsheets for charts in Word/PowerPoint.
Prerequisite for using the Open XML SDK: detailed knowledge of the relevant formats (https://learn.microsoft.com/en-us/openspecs/office_standards/ms-offstandlp) and standards (https://standards.iso.org/ittf/PubliclyAvailableStandards/index.html - search for 29500)
Table of Contents
Packages
Daily Builds
Framework Support
Known Issues
Documentation
If You Have How-To Questions
Related tools
Packages
The official release NuGet packages for Open XML SDK are on NuGet.org:
Package
Stable
Prerelease
DocumentFormat.OpenXml.Framework
DocumentFormat.OpenXml
DocumentFormat.OpenXml.Linq
DocumentFormat.OpenXml.Features
Daily Builds
The NuGet package for the latest builds of the Open XML SDK is available as a custom feed on an Azure blob. Stable releases here will be mirrored onto NuGet and will be identical. You must set up a NuGet.config file that looks similar to this:
On .NET Core and .NET 5 and following, ZIP packages do not have a way to stream data. Thus, the working set can explode in certain situations. This is a known issue.
On .NET Framework, an IsolatedStorageException may be thrown under certain circumstances. This generally occurs when manipulating a large document in an environment with an AppDomain that does not have enough evidence. A sample with a workaround is available here.
Documentation
Please see Open XML SDK for the official documentation.
If you have how-to questions
Stack Overflow (tags: openxml or openxml-sdk)
How-to samples:
Spreadsheet Samples
Presentation Samples
Wordprocessing Samples
Related tools
Open XML SDK 2.5 Productivity Tool: The Productivity Tool provides viewing and code generation compatible with the Open XML SDK 2.5.
Open XML Powertools: This provides example code and guidance for implementing a wide range of Open XML scenarios.
ClosedXml: This library provides a simplified object model on top of the OpenXml SDK for manipulating and creating Excel documents.
OfficeIMO: This library provides a simplified object model on top of the OpenXml SDK for manipulating and creating Word, Excel, PowerPoint documents with support for Markdown, Html and Pdf, and Visio.
OpenXML-Office: This nuget library provides a simplified object model on top of the OpenXml SDK manipulating and creating PPT and Excel documents.
Serialize.OpenXml.CodeGen: This is a tool that converts an OpenXml document into the .NET code required to create it.
Html2OpenXml: This is a tool that takes HTML and converts it to an OpenXml document.
DocxToSource: This is a tool designed to be a replacement for the old OpenXML SDK Productivity Tool.
OOXML Viewer: This is an extension for Visual Studio Code to View and Edit the xml parts of an Office Open XML file and to view a diff with the previous version of an OOXML part when saved from an outside program. Search "OOXML" in the VS Code extensions tab or download it from the VS Code Marketplace
ShapeCrawler: This library provides a simplified object model on top of the OpenXml SDK to manipulate PowerPoint documents.
OOXML Validator: VS Code extension to validate Office Open XML files. Search "OOXML" in the VS Code extensions tab or download it from the VS Code Marketplace
How can I contribute?
We welcome contributions! Many people all over the world have helped make this project better.
Contributing explains what kinds of contributions we welcome
Reporting security issues and security bugs
Security issues and bugs should be reported privately, via email, to the Microsoft Security Response Center (MSRC) [email protected]. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Further information, including the MSRC PGP key, can be found in the Security TechCenter.
.NET Foundation
The Open XML SDK is a .NET Foundation project.
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information, see the .NET Foundation Code of Conduct.
License
The Open XML SDK is licensed under the MIT license.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/dotnet/Open-XML-SDK là nguồn chính thức.
dotnet/Open-XML-SDK có bao nhiêu sao?
dotnet/Open-XML-SDK có 4.6k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/dotnet/Open-XML-SDK. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
dotnet/Open-XML-SDK có phải mã nguồn mở không?
Có — dotnet/Open-XML-SDK phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/dotnet/Open-XML-SDK.
dotnet/Open-XML-SDK có trang demo không?
Dự án có trang chủ ở https://www.nuget.org/packages/DocumentFormat.OpenXml/ . Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
dotnet/Open-XML-SDK là gì?
dotnet/Open-XML-SDK (dotnet/Open-XML-SDK) là dự án C# trên GitHub. Theo mô tả gốc: Open XML SDK by Microsoft
Đọc đầy đủ README ở tab phía trên.
Chưa chắc Open-XML-SDK có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về Open-XML-SDK.