Chart.SaveImage Method (String, ChartImageFormat)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Saves a chart image to the file.

Namespace:   System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

public void SaveImage(
	string imageFileName,
	ChartImageFormat format
)

Parameters

imageFileName
Type: System.String

The image file name.

format
Type: System.Web.UI.DataVisualization.Charting.ChartImageFormat

The chart image format.

.NET Framework
Available since 4.0
Return to top
Show: