Open XML SDK gives .NET APIs to create, read, and change Word, Excel, and PowerPoint files. It follows ISO 29500-style markup via OPC packages, strongly typed classes, and LINQ to XML.
Overview
Open XML SDK is a Microsoft-supported .NET package for working with Office Word, Excel, and PowerPoint documents at the Open XML format level. It exposes low-level APIs for OPC packages, Flat OPC, and markup in both strongly typed classes and LINQ to XML, aligned with the Office implementation of ISO 29500 rather than high-level productivity abstractions.
Typical uses include generating documents and spreadsheets at scale, editing body content and metadata, regex-based search and replace, splitting or merging package files, and refreshing embedded chart data in Word or PowerPoint. Official NuGet packages include the core library, framework, LINQ, and features variants.
You add packages through NuGet or the .NET CLI and reference them from application code. Documentation and how-to samples are published separately. Using the SDK effectively assumes familiarity with the underlying Office XML formats.
Key features
- Word, Excel, and PowerPoint Open XML APIs
- Strongly typed classes and LINQ to XML
- OPC package and Flat OPC support
- Document generation and modification
- Regex search and replace in documents
- Split and merge Office files
- Chart cached data updates in Word/PowerPoint
- Multiple NuGet package modules
Use cases
- Automated Word or PowerPoint report generation
- Spreadsheet creation and updates in .NET apps
- Bulk content or metadata changes in Office files
- Splitting or combining document packages
- Low-level Office format tooling