Cmdlet
Export-OfficeExcelImage
Exports workbook sheets as PNG or SVG images with one result per sheet.
Syntax
Export-OfficeExcelImage [-Format <OfficeImageExportFormat>] [-Options <ExcelWorkbookImageExportOptions>] [-OutputPath] <String> [-PassThru] [-Path] <String> [<CommonParameters>]#Parameter set:
PathExport-OfficeExcelImage -Document <ExcelDocument> [-Format <OfficeImageExportFormat>] [-Options <ExcelWorkbookImageExportOptions>] [-OutputPath] <String> [-PassThru] [<CommonParameters>]#Parameter set:
DocumentExamples
Export visible sheets as PNG files.
Export-OfficeExcelImage -Path .\Report.xlsx -OutputPath .\ImagesWrites one image per selected sheet. Add -PassThru to receive the structured export results.
Parameters
- -Format OfficeImageExportFormat
- Output image format.
- Possible values:
Png,Svg,Jpeg,Tiff,Webp,Bmp,Pbm,Tga,Icon - -Options ExcelWorkbookImageExportOptions
- Optional sheet selection, range, size, and rendering settings.
- -OutputPath String
- Destination folder.
- -PassThru SwitchParameter
- Emit one structured image export result per saved sheet.
- -Path String
- Path to the workbook.
- -Document ExcelDocument
- Open workbook instance.
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.