Click or drag to resize

XlsWorkbook SaveChartAsEmfImage Method

Saves the specified chart as an EMF image.

Namespace: Spire.Xls.Core.Spreadsheet
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public Image SaveChartAsEmfImage(
	Worksheet worksheet,
	int chartIndex,
	ConverterSetting imageOrPrintOptions,
	Stream emfStream
)

Parameters

worksheet
Type: Spire.Xls Worksheet
The worksheet containing the chart.
chartIndex
Type: System Int32
The index of the chart to save.
imageOrPrintOptions
Type: Spire.Xls ConverterSetting
The options for saving the image.
emfStream
Type: System.IO Stream
The stream to save the EMF image to.

Return Value

Type: Image
The saved EMF image.
See Also