Saves an Area as a specified image format with specific dimensions in pixels at a specified file path.

 public static void SaveImage(String filePath, ImageFormat imageFormat)
Public Static Sub SaveImage(ByVal filePath As String, ByVal imageFormat As ImageFormat)

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

The file format ExcelWriter will save the area 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 Area object.

           ExcelApplication xla = new ExcelApplication();
           Workbook WB= xla.Create(FileFormat.Xlsx);
           Area areaOne= WB[0].CreateArea["A1:C5"];          
           areaOne.SaveImage("Path/filename.png", System.Drawing.Imaging.ImageFormat.Png, 300, 400);            
	   Dim oExcelApp As New ExcelApplication()           
           Dim wb As Workbook = oExcelApp.Create(FileFormat.Xlsx) 
           Dim areaOne As Area = WB[0].CreateArea["A1:C5"]       
           areaOne.SaveImage("Path/filename.png"), System.Drawing.Imaging.ImageFormat.Png, 300, 400)