Project

PSWriteOffice

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

Stars 159
Forks 14
PowerShell Gallery downloads 158,661
Release v3.0.5
Language: C# Updated: 2026-09-03

API Reference

Cmdlet

Export-OfficeExcelImage

Namespace PSWriteOffice
Inputs
OfficeIMO.Excel.ExcelDocument
Outputs
OfficeIMO.Drawing.OfficeImageExportResult

Exports workbook sheets as PNG or SVG images with one result per sheet.

Remarks

Exports workbook sheets as PNG or SVG images with one result per sheet.

Examples

Authored help example

Export visible sheets as PNG files.

PS>


Export-OfficeExcelImage -Path .\Report.xlsx -OutputPath .\Images
        

Writes one image per selected sheet. Add -PassThru to receive the structured export results.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

Export-OfficeExcelImage [-Format <Png|Svg|Jpeg|Tiff|Webp>] [-Options <ExcelWorkbookImageExportOptions>] -OutputPath <String> [-PassThru] -Path <String> [<CommonParameters>]
#
Parameter set: Path

Parameters

Format OfficeImageExportFormat optionalposition: namedpipeline: Falsevalues: 5
Output image format.
Possible values: Png, Svg, Jpeg, Tiff, Webp
Options ExcelWorkbookImageExportOptions optionalposition: namedpipeline: False
Optional sheet selection, range, size, and rendering settings.
OutputPath String requiredposition: 1pipeline: False
Destination folder.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit one structured image export result per saved sheet.
Path String requiredposition: 0pipeline: False
Path to the workbook.

Outputs

OfficeIMO.Drawing.OfficeImageExportResult

Export-OfficeExcelImage -Document <ExcelDocument> [-Format <Png|Svg|Jpeg|Tiff|Webp>] [-Options <ExcelWorkbookImageExportOptions>] -OutputPath <String> [-PassThru] [<CommonParameters>]
#
Parameter set: Document

Parameters

Document ExcelDocument requiredposition: namedpipeline: True (ByValue)
Open workbook instance.
Format OfficeImageExportFormat optionalposition: namedpipeline: Falsevalues: 5
Output image format.
Possible values: Png, Svg, Jpeg, Tiff, Webp
Options ExcelWorkbookImageExportOptions optionalposition: namedpipeline: False
Optional sheet selection, range, size, and rendering settings.
OutputPath String requiredposition: 1pipeline: False
Destination folder.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit one structured image export result per saved sheet.

Outputs

OfficeIMO.Drawing.OfficeImageExportResult