Saves a specified Workbook as a BIFF8 format (Excel 97 or later) .xls file.

 public virtual void Save(Workbook workbook, System.String fileName)
Public Overridable Sub Save(ByVal workbook As Workbook, ByVal fileName As String)

A Workbook object representing the workbook to save.

Specifies a complete path and file name for the Workbook. ExcelWriter will save the file to this location. If a file with the same name exists, it will be overwritten by the new Excel file.

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


          ExcelApplication oExcelApp = new ExcelApplication();
          Workbook wb = oExcelApp.Create();
          oExcelApp.Save(wb,@"C:\Sales2003\June.xls");
        

          Dim oExcelApp As New ExcelApplication()
          Dim wb As Workbook = oExcelApp.Create()
          oExcelApp.Save(wb, "C:\Sales2003\June.xls")