API Reference
Cmdlet
New-OfficeExcelImageOptions
Creates discoverable rendering settings for Excel range and chart image export.
Remarks
Creates discoverable rendering settings for Excel range and chart image export.
Examples
Render a range with gridlines and hyperlinks visible.
PS>
$options = New-OfficeExcelImageOptions -ShowGridlines -ShowHyperlinkHints -TargetDpi 144
Export-OfficeExcelRangeImage -Path .\Workbook.xlsx -Worksheet Summary -Range A1:H20 -OutputPath .\Summary.svg -Options $options
Reuse the same rendering controls for a chart.
PS>
$options = New-OfficeExcelImageOptions -TargetDpi 144 -MaximumOutputWidth 1600
Export-OfficeExcelChartImage -Path .\Workbook.xlsx -Worksheet Summary -ChartName Revenue -OutputPath .\Revenue.svg -Options $options
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
New-OfficeExcelImageOptions [-BackgroundColor <String>] [-IncludeCharts] [-IncludeConditionalFormatting] [-IncludeDrawingObjects] [-IncludeHidden] [-IncludeImages] [-MaximumDegreeOfParallelism <Int32>] [-MaximumOutputCount <Int32>] [-MaximumOutputHeight <Int32>] [-MaximumOutputWidth <Int32>] [-MaximumRasterPixels <Int64>] [-MaximumRenderedCells <Int32>] [-MaximumTotalEncodedBytes <Int64>] [-MaximumTotalRasterPixels <Int64>] [-RasterOverflowBehavior <ReduceScale|Throw>] [-RenderTimeoutSeconds <Double>] [-Scale <Double>] [-ShowCommentBodies] [-ShowGridlines] [-ShowHyperlinkHints] [-TargetDpi <Double>] [-TextShapingLanguage <String>] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- BackgroundColor String
- IncludeCharts SwitchParameter
- Include worksheet charts.
- IncludeConditionalFormatting SwitchParameter
- Include conditional formatting.
- IncludeDrawingObjects SwitchParameter
- Include drawing objects.
- IncludeHidden SwitchParameter
- Include hidden rows and columns.
- IncludeImages SwitchParameter
- Include worksheet images.
- MaximumDegreeOfParallelism Int32
- MaximumOutputCount Int32
- MaximumOutputHeight Int32
- MaximumOutputWidth Int32
- MaximumRasterPixels Int64
- MaximumRenderedCells Int32
- Maximum cells rendered.
- MaximumTotalEncodedBytes Int64
- MaximumTotalRasterPixels Int64
- RasterOverflowBehavior OfficeRasterOverflowBehavior
- Possible values:
ReduceScale,Throw - RenderTimeoutSeconds Double
- Scale Double
- ShowCommentBodies SwitchParameter
- Show cell comment bodies.
- ShowGridlines SwitchParameter
- Show worksheet gridlines.
- ShowHyperlinkHints SwitchParameter
- Show hyperlink hints.
- TargetDpi Double
- TextShapingLanguage String
Outputs
OfficeIMO.Excel.ExcelImageExportOptions