Message-ID: <1022145575.8139.1711633900428.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_8138_1726787419.1711633900428" ------=_Part_8138_1726787419.1711633900428 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html ExcelApplication.Save(Workbook, System.IO.Stream)

ExcelApplication.Save(Workbook, System.IO.Stream)

Description

=20

Saves a specified Workbook as a BI= FF8 format (Excel 97 or later).xls file.

=20
C#
=20
 public virtual void Save(Workbook workbook, System.IO.Stream stream)
=20
=20
vb.net
=20
Public Overridable Sub Save(ByVal workbook As Workbook, ByVal stream As Sys=
tem.IO.Stream)
=20
=20

Para= meters

=20
workbo= ok
A=20 Workbook object representing the workbook to save.=20
stream The output stream to write to. This stream must be open and writable. E= xcelWriter will not close this stream; the calling program is responsible f= or closing the stream and releasing the resource.=20

Exce= ptions

=20
System.Exception
If there is a problem creating, opening, or writing= to the file specified, or reading from the workbook object.=20

Exampl= es

=20
C#
=20

          ExcelApplication oExcelApp =3D new ExcelApplication();
          Workbook wb =3D oExcelApp.Create();
          FileStream fstream =3D new FileStream(@"C:\temp\outfile.xls&=
quot;,
               FileMode.Create);
          oExcelApp.Save(wb,fstream);
        
=20
=20
vb.net
=20

          Dim oExcelApp As New ExcelApplication()
          Dim wb As Workbook =3D oExcelApp.Create()
          Dim fstream As New FileStream("C:\temp\outfile.xls", _
               FileMode.Create)
          oExcelApp.Save(wb, fstream)
        
=20
------=_Part_8138_1726787419.1711633900428--