Description |
---|
Excerpt |
---|
Saves a Chart an Area as a specified image format at a specified file path with the specified dimensions in pixels. |
Signature | ||||
---|---|---|---|---|
| ||||
public static void SaveImage(String filePath, ImageFormat imageFormat, int? width, int? height)
|
Signature | ||||
---|---|---|---|---|
| ||||
Public Static Sub SaveImage(ByVal filePath As String, ByVal imageFormat As ImageFormat, ByVal width As int?, ByVal height As int?)
|
Parameters |
---|
Param | ||
---|---|---|
| ||
A |
Param | ||
---|---|---|
| ||
The file format ExcelWriter will save the chart area as. Supported file types include GIF, JPEG, BMP, PNG, EMF, TIFF, and WMF |
Param | ||
---|---|---|
| ||
The desired width of the image in pixels |
Param | ||
---|---|---|
| ||
The desired height of the image in pixels. |
Exceptions |
---|
Exception | ||||
---|---|---|---|---|
| ||||
If there is a problem creating, opening, or writing to the file specified, or reading from the Chart Area object. |
Example | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|