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.
listItem
SharePoint List Item to which the file is attachedfileName
Specifies a file name for the Workbook. ExcelWriter will save the file as an attachment to the List Item using this name.Exceptions
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