ComOffice SDK · Windows

Office Documents Inside Your Windows Software

ComOffice for Windows is a .NET library for your own apps, tools, and servers. Open, edit, and save Word, Excel, and PowerPoint files, render their pages to images, and export them to PDF.

.NET 8+Windows 11 x64Windows ServerC#

Free to evaluate until 2027-01-01: download it from GitHub.

C#

using ComOfficeKit;

License.Activate(key);

using var doc = Document.Open("report.docx");
for (int i = 0; i < doc.PageCount; i++)
    doc.RenderPage(i, dpi: 96)
       .SavePng($"page-{i + 1}.png");
doc.ExportPdf("report.pdf");

What It Does

One .NET library. Open a document, change it, save it, and draw its pages.

Open, Edit, and Save

Opens .docx, .odt, .xlsx, .xlsm, .pptx, .csv, and .tsv files, saves them in place or as a new file, and creates blank documents, workbooks, and decks. OpenDocument text saves as .odt or .docx. Before a save as .odt leaves out comments, tracked changes, or drawing shapes, which the format does not carry, it stops and tells you what would be lost. Files built from Microsoft’s own templates open with their styles, charts, and layouts, and keep them on save.

Page Images, Text, and PDF

Renders any page to a PNG image at 24 to 600 dpi, and exports a whole document to PDF. For each page it also gives the text drawn there and where it sits, so your app can let people select, copy, and search over the image. A Word document’s page color fills every page.

Word Documents

Reads a document’s text, replaces text throughout it, and compares two documents into a third that shows the differences as tracked changes.

Workbooks

Lists the sheets, reads and sets what a cell holds, and reads the value a formula calculates, as the cell shows it. Pastes a table copied from Excel, Google Sheets, or a web page, with its values, formats, and merged cells, and copies a range out as text and as an HTML table.

Made for .NET

What you would otherwise have to check for yourself before putting a document engine in your Windows software.

  • One package. Each release on GitHub attaches ComOfficeKit’s .nupkg: add its folder as a package source and reference ComOfficeKit from a .NET 8 or later project. The engine travels with your app, about 76 MB, and nothing is installed on the machine.
  • Typed errors. A file the engine cannot read throws a ComOfficeKitException that says which kind of failure it was.
  • A license in one line. Call License.Activate with your key, or License.ActivateFromFile. A license can be bound to your app, and the activation is kept for the Windows user or only in memory.

Platforms

Windows 11 and Windows Server 2022 and 2025, on x64, with .NET 8 or later. It does not run on .NET Framework.

Formats

.docx, .xlsx, .xlsm, .pptx, .csv, and .tsv in; the same formats, PNG page images, and PDF out. Older .doc, .xls, and .ppt files are not opened.

Documentation

Guides to getting started, licensing, rendering and PDF, spreadsheets, the document model, errors and threading, deployment, servers, and limits, with six sample apps, in its GitHub repository. The package’s XML documentation appears in IntelliSense. Read the API reference online.

More Features on the Way

Some advanced features are not in the SDK yet. We are adding them release by release; tell us what your project needs.

Frequently Asked Questions

How do I get ComOffice for Windows?

Download it from GitHub: each release attaches the package, and its README publishes a free evaluation key, valid until 2027-01-01. For a license, tell our sales team about your project on the contact form, or write to sales@comofficekit.com.

Which versions of Windows and .NET does it support?

Windows 11 and Windows Server 2022 and 2025, on x64, with .NET 8 or later. It does not run on .NET Framework.

Can I run it on Windows Server?

Yes. Windows Server 2022 and 2025 are tested, and so are Windows containers on their full images and on the smaller image of 2025. In the smaller image of 2022, documents open, change, and save, but page images are not available. The guide to servers covers worker processes, limits on disk, time, and memory, fonts, containers, and showing documents in a browser. See ComOffice on servers.

Does it run on Linux?

Yes. The same package runs on x64 Linux, with the same API: see ComOffice on Linux.

Can it open PDF files?

No. ComOffice works with .docx, .xlsx, .xlsm, .pptx, .csv, and .tsv files and exports them to PDF. It does not open or edit PDF documents.

Is the API stable?

Yes. It keeps to semantic versioning: a 1.x version adds to it, and nothing your code compiles against is removed or changed before 2.0. Since 1.1.0 that includes the document model, ComOfficeKit.Model, which reads and edits paragraphs, cells, and slides as records.

Ask About ComOffice for Windows

Tell us what you are building, and our sales team will get back to you. You can also write to sales@comofficekit.com.