Introducedin | ||||
---|---|---|---|---|
|
Description |
---|
Excerpt |
---|
Saves a specified Workbook as a BIFF8 format (Excel 97 or later) .xls file. |
Signature | ||||
---|---|---|---|---|
| ||||
public static void Save(this ExcelApplication excelApplication, Workbook workbook, Microsoft.SharePoint.SPDocumentLibrary docLib, String fileName, bool overwrite) |
Signature | ||||
---|---|---|---|---|
| ||||
Public Overridable Sub Save(ByVal excelApplication As ExcelApplication, ByVal workbook As Workbook, ByVal docLib As Microsoft.SharePoint.SPDocumentLibrary, ByVal fileName As String, ByVal overwrite As Boolean) |
Parameters |
---|
Param | ||||
---|---|---|---|---|
| ||||
The current ExcelApplication object which is saving the workbook to file |
Param | ||||
---|---|---|---|---|
| ||||
A |
Param | ||||
---|---|---|---|---|
| ||||
SharePoint Document Library that contains the Excel spreadsheet being opened |
Param | ||||
---|---|---|---|---|
| ||||
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. |
Param | ||||
---|---|---|---|---|
| ||||
Set to True to overwrite an Excel file if one already exists by that name in the Document Library |
Exceptions |
---|
Exception | ||||
---|---|---|---|---|
| ||||
If there is a problem creating, opening, or writing to the file specified, or reading from the workbook object. |
Remarks | ||
---|---|---|
|
Example | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|