Message-ID: <495283944.9383.1711689856610.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_9382_396126292.1711689856610" ------=_Part_9382_396126292.1711689856610 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
public static void SaveImage(System.IO.Stream = stream, ImageFormat imageFormat, int? width, int? height)=20
Public Static Sub SaveImage(ByVal stream As Syst= em.IO.stream, ByVal imageFormat As ImageFormat, ByVal width As int?, ByVal = height As int?)=20
ExcelApplication xla =3D new ExcelApplication(); Workbook WB=3D xla.Create(FileFormat.Xlsx); Chart chartOne=3D WB[0].Charts[0]; FileStream fstream =3D new FileStream(@"C:\temp\outfile.xls= ", FileMode.Create); =20 chartOne.SaveImage(fstream, System.Drawing.Imaging.ImageFormat.P= ng, 600, 400);=20
=09 Dim oExcelApp As New ExcelApplication() =20 Dim wb As Workbook =3D oExcelApp.Create(FileFormat.Xlsx)=20 Dim chartOne As Chart =3D WB[0].Charts[0] Dim fstream As New FileStream("C:\temp\outfile.xls", F= ileMode.Create) =20 chartOne.SaveImage(fstream, System.Drawing.Imaging.ImageFormat.P= ng, 600, 400)=20