Introduced in build 7.1.0.1855
Description
Saves a specified Workbook as a BIFF8 format (Excel 97 or later) .xls file.
C#
vb.net
Parameters
excelApplication
The current ExcelApplication object which is saving the workbook to fileworkbook
AWorkbook
object representing the workbook to save.
docLib
SharePoint Document Library that contains the Excel spreadsheet being openedfileName
Specifies a file name for the Workbook. ExcelWriter will save the file to the document library using this name. If a file with the same name exists, it will be overwritten by the new Excel file if the overwrite parameter is set to True.overwrite
Set to True to overwrite an Excel file if one already exists by that name in the Document LibraryExceptions
System.Exception
If there is a problem creating, opening, or writing to the file specified, or reading from the workbook object.Remarks
Examples
C#
vb.net