Description
Saves a Chart as a specified image format.C#
vb.net
Parameters
stream
The output stream to write to. This stream must be open and writable. ExcelWriter will not close this stream; the calling program is responsible for closing the stream and releasing the resource.ImageFormat
The file format ExcelWriter will save the chart as. Supported file types include GIF, JPEG, BMP, PNG, EMF, TIFF, and WMFwidth
The desired width of the image in pixelsheight
The desired height of the image in pixels
Exceptions
System.Exception
If there is a problem creating, opening, or writing to the file specified, or reading from the Chart object.Examples
C#
vb.net