API Reference
Cmdlet
Export-OfficeExcelImage
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
Export visible sheets as PNG files.
PS>
Export-OfficeExcelImage -Path .\Report.xlsx -OutputPath .\Images
Writes one image per selected sheet and returns OfficeImageExportResult objects.
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> -Path <String> [<CommonParameters>]#Parameter set:
PathParameters
- Format OfficeImageExportFormat
- Output image format.
- Possible values:
Png,Svg,Jpeg,Tiff,Webp - Options ExcelWorkbookImageExportOptions
- Optional sheet selection, range, size, and rendering settings.
- OutputPath String
- Destination folder.
- Path String
- Path to the workbook.
Outputs
OfficeIMO.Drawing.OfficeImageExportResult
Export-OfficeExcelImage -Document <ExcelDocument> [-Format <Png|Svg|Jpeg|Tiff|Webp>] [-Options <ExcelWorkbookImageExportOptions>] -OutputPath <String> [<CommonParameters>]#Parameter set:
DocumentParameters
- Document ExcelDocument
- Open workbook instance.
- Format OfficeImageExportFormat
- Output image format.
- Possible values:
Png,Svg,Jpeg,Tiff,Webp - Options ExcelWorkbookImageExportOptions
- Optional sheet selection, range, size, and rendering settings.
- OutputPath String
- Destination folder.
Outputs
OfficeIMO.Drawing.OfficeImageExportResult