Project

PSWriteOffice

PowerShell document automation across Word, Excel, PowerPoint, PDF, Reader, Confluence, Visio, and open text formats.

Stars164
Forks15
Open issues0
PowerShell Gallery downloads158661
Releasev3.0.8
Language: C# Updated: 2026-10-12

Documentation

Create reports from HTML and Windows events

Combine PSParseHTML, PSEventViewer, PSWriteOffice and Mailozaurr to create editable reports and local email review packages.

Use a collector to obtain the data, then pass ordinary objects or files to the next module. The integration recipes provide complete scripts with sample inputs and explicit output directories.

TaskStart withDeliverables
Compare supplier prices and delivery times from HTMLHTML supplier reviewSpaced Word report, PDF review copy and numeric Excel table
Assign investigation from a Windows event snapshotEvent incident briefWord/PDF brief and Excel register with full messages
Review report attachments before distributionMailozaurr report packageLocal EML with attached reports

The first two recipes run with synthetic data by default. The mail recipe saves an EML locally; sending is an explicit -Send operation with your SMTP settings.

Open the worked examples to inspect the generated files before adapting the scripts: supplier offer review, event incident brief and email review package.

./Examples/Integrations/Recipe-HtmlSupplierReview.ps1 -OutputDirectory ./Output/SupplierReview
./Examples/Integrations/Recipe-PSEventViewer-OfficeReport.ps1 -OutputDirectory ./Output/EventBrief

./Examples/Integrations/Recipe-Mailozaurr-PdfDelivery.ps1 `
    -AttachmentPath ./Output/EventBrief/EventIncidentBrief.pdf,./Output/EventBrief/EventRegister.xlsx `
    -OutputDirectory ./Output/Mail

The recipe guide explains module requirements, HTML headers, bounded live event collection, supplied snapshots and delivery options. The document layout guide covers the paragraph spacing and cell padding used by these reports.

PSParseHTML owns HTML extraction. EventViewerX owns the PSEventViewer module and its event queries. OfficeIMO owns document generation through PSWriteOffice, while Mailozaurr owns MIME and transport. These integrations add no required modules to PSWriteOffice itself.