Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

.NET libraries · One package per format

Build documents into your applications.

Create Word documents, Excel workbooks, presentations and PDFs from C#. Pick the focused package for generation, conversion, editing or extraction.

  • No Office install
  • NativeAOT tested
  • MIT licensed

Scripting instead? PSWriteOffice brings the same engines to PowerShell.

Report.cs · OfficeIMO.Word

using OfficeIMO.Word;

using var doc = WordDocument.Create("report.docx");

var title = doc.AddParagraph("Quarterly Sales Report");
title.Style = WordParagraphStyle.Heading1;

var table = doc.AddTable(4, 3);
table.Rows[0].Cells[0].Paragraphs[0].Text = "Region";
table.Rows[0].IsHeader = true;

doc.Save();

Document capabilities

Find the right library

Each library has its own guide and supported-format boundaries. Check format support →

Working with CSV? Explore tabular workflows. Need a visual workspace or a command? Try Studio or the CLI.

Code Examples

Use the language that fits your workflow

Call focused .NET packages from applications and services, or use PSWriteOffice for script-first document automation.

using var doc = WordDocument.Create("report.docx");

var paragraph = doc.AddParagraph("Quarterly Sales Report");
paragraph.Style = WordParagraphStyle.Heading1;

doc.AddParagraph("Generated automatically with OfficeIMO.Word.");

var table = doc.AddTable(4, 3);
table.Rows[0].Cells[0].Paragraphs[0].Text = "Region";
table.Rows[0].Cells[1].Paragraphs[0].Text = "Revenue";
table.Rows[0].Cells[2].Paragraphs[0].Text = "Growth";
table.Rows[0].IsHeader = true;

table.Rows[1].Cells[0].Paragraphs[0].Text = "North America";
table.Rows[1].Cells[1].Paragraphs[0].Text = "$1,250,000";
table.Rows[1].Cells[2].Paragraphs[0].Text = "+12%";

doc.Save();

Built by Evotec · Open source

Make documents part of your workflow.

Explore the source, read a guide, or talk to us about support and development.

Example source