Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

Description

Excerpt

Saves a Chart in a specified image format.

Signature
C#
C#
 public static void SaveImage(String filePath, ImageFormat imageFormat, int? width, int? height)
Signature
vb.net
vb.net
Public Static Sub SaveImage(ByVal filePath As String, ByVal imageFormat stream As ImageFormat, ByVal width as int?, ByVal height as int?)

Parameters

Param
0string

A string representing the filepath you would like to save the image to.

Param
0ImageFormat

The file format ExcelWriter will save the chart as. Supported file types include GIF, JPEG, BMP, PNG, EMF, TIFF, and WMF

Param
0width

The width of the image in pixels

Param
0height

The height of the image in pixels.

 

Exceptions

Exception
System.Exception
System.Exception

If there is a problem creating, opening, or writing to the file specified, or reading from the Chart object.

...