Usage Samples

This documentation starts with runnable examples, not API catalogs. The first sample project creates real Office files, saves them under examples/output/, then reads them back to verify the generated content.

Run it from the repository root:

dotnet run --project examples/UsageSamples/UsageSamples.csproj

Generated files:

examples/output/usage-workbook.xlsx
examples/output/usage-macro-preserve.xlsm
examples/output/usage-document.docx
examples/output/usage-presentation.pptx

Spreadsheet

usage-workbook.xlsx demonstrates the spreadsheet tasks most users need first:

Source: examples/UsageSamples/Program.cs, CreateSpreadsheet.

Macro-Enabled Workbook

usage-macro-preserve.xlsm demonstrates:

Source: examples/UsageSamples/Program.cs, CreateMacroWorkbookRoundTrip.

Word Document

usage-document.docx demonstrates:

Source: examples/UsageSamples/Program.cs, CreateDocument.

PowerPoint Presentation

usage-presentation.pptx demonstrates:

Source: examples/UsageSamples/Program.cs, CreatePresentation.

Documentation Scope

Phase 9 documentation is usage-only for now. Do not add class hierarchy pages or generated API reference pages until the practical guides have enough runnable coverage.