Cmdlet
Export-OfficeExcelChartImage
Exports one named worksheet chart as an image file.
Syntax
Export-OfficeExcelChartImage
-ChartName <String>
[-Force]
[-Format <OfficeImageExportFormat>]
[-Options <ExcelImageExportOptions>]
[[-OutputPath] <String>]
[-PassThru]
[-Path] <String>
-WorksheetName <String>
[<CommonParameters>]#Parameter set:
PathExport-OfficeExcelChartImage
-ChartName <String>
-Document <ExcelDocument>
[-Force]
[-Format <OfficeImageExportFormat>]
[-Options <ExcelImageExportOptions>]
[[-OutputPath] <String>]
[-PassThru]
-WorksheetName <String>
[<CommonParameters>]#Parameter set:
DocumentExamples
Export a chart for inline use in an email.
Export-OfficeExcelChartImage -Path .\Report.xlsx -WorksheetName Summary -ChartName TicketStatus -OutputPath .\ticket-status.pngParameters
- -ChartName String
- Chart name as stored in the worksheet drawing layer.
- -Force SwitchParameter
- Replace an existing destination file.
- -Format OfficeImageExportFormat
- Output image format.
- Possible values:
Png,Svg,Jpeg,Tiff,Webp,Bmp,Pbm,Tga,Icon - -Options ExcelImageExportOptions
- Optional rendering, size, font, and diagnostic policy settings.
- -OutputPath String
- Optional destination image file. When omitted, returns the in-memory image result only.
- -PassThru SwitchParameter
- Emit the structured image export result when a destination path is used.
- -Path String
- Path to the workbook.
- -WorksheetName String
- Name of the worksheet containing the chart.
- -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.