Writes a Chart as an image with the specified dimensions in pixels to the specified stream.

 public static void SaveImage(System.IO.Stream stream, ImageFormat imageFormat, int? width, int? height)
Public Static Sub SaveImage(ByVal stream As System.IO.stream, ByVal imageFormat As ImageFormat, ByVal width As int?, ByVal height As int?)

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.

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

The desired width of the image in pixels

The desired height of the image in pixels

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

           ExcelApplication xla = new ExcelApplication();
           Workbook WB= xla.Create(FileFormat.Xlsx);
           Chart chartOne= WB[0].Charts[0];
           FileStream fstream = new FileStream(@"C:\temp\outfile.xls", FileMode.Create);           
           chartOne.SaveImage(fstream, System.Drawing.Imaging.ImageFormat.Png, 600, 400);            
	   Dim oExcelApp As New ExcelApplication()           
           Dim wb As Workbook = oExcelApp.Create(FileFormat.Xlsx) 
           Dim chartOne As Chart = WB[0].Charts[0]
           Dim fstream As New FileStream("C:\temp\outfile.xls", FileMode.Create)          
           chartOne.SaveImage(fstream, System.Drawing.Imaging.ImageFormat.Png, 600, 400)