# Create a Word report

Create a Word report on Evotec with practical examples, usage guidance, and reusable project workflows.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice)

Stars**728**

Forks**84**

Open issues**4**

PowerShell Gallery downloads**5280687**

Release**v3.6.2**

Language: C# Updated: 2026-11-25

Curated Examples

Use PSWriteOffice to generate a Word document with text, a list, and a table.

This pattern is useful when an operational script needs to leave behind a readable Word document.

It is adapted from `Examples/Word/Example-WordBasic.ps1`.

## Example

```powershell
Import-Module PSWriteOffice

$outputPath = Join-Path $PSScriptRoot 'Output\RevenueSnapshot.docx'
$null = New-Item -ItemType Directory -Path (Split-Path $outputPath) -Force
$data = @(
    [PSCustomObject]@{ Region = 'North America'; Revenue = 125000; YoY = '12%' }
    [PSCustomObject]@{ Region = 'EMEA'; Revenue = 98000; YoY = '22%' }
    [PSCustomObject]@{ Region = 'APAC'; Revenue = 143000; YoY = '18%' }
)

New-OfficeWord -Path $outputPath {
    Add-OfficeWordSection {
        Add-OfficeWordParagraph -Text 'Executive Summary' -Style Heading1
        Add-OfficeWordParagraph -Text 'Revenue accelerated in all regions.'
        Add-OfficeWordList -Style Numbered {
            Add-OfficeWordListItem -Text 'North America +12% YoY'
            Add-OfficeWordListItem -Text 'EMEA +22% YoY'
            Add-OfficeWordListItem -Text 'APAC +18% YoY'
        }
        Add-OfficeWordTable -InputObject $data -Style 'GridTable1LightAccent2'
    }
}
```

## What this demonstrates

- creating a Word document from a PowerShell script
- mixing paragraphs, lists, and structured data
- writing output to a predictable script-local folder

## Source

- [Example-WordBasic.ps1](https://github.com/EvotecIT/PSWriteOffice/blob/main/Examples/Word/Example-WordBasic.ps1)

<!-- PowerForge markdown artifact sha256:3B0143867D5BAD8B41F9ECDB8A2F50FFB901618A3BA941E182EA4AD44805B798 -->
