Spread WPF Documentation
Save(String,ExcelFileType,String) Method


GrapeCity.Excel Namespace > ExcelOperator Class > Save Method : Save(String,ExcelFileType,String) Method
The output excel file name.
A ExcelFileType indicate the type of saved Excel file.
The password of the workbook. The default password is a null reference (Nothing in Visual Basic).
Saves the Excel document data to a System.IO.Stream with workbookType format and special password by password.
Syntax
'Declaration
 
Public Overloads Sub Save( _
   ByVal fileName As System.String, _
   Optional ByVal workbookType As ExcelFileType, _
   Optional ByVal password As System.String _
) 
'Usage
 
Dim instance As ExcelOperator
Dim fileName As System.String
Dim workbookType As ExcelFileType
Dim password As System.String
 
instance.Save(fileName, workbookType, password)
public void Save( 
   System.string fileName,
   ExcelFileType workbookType,
   System.string password
)

Parameters

fileName
The output excel file name.
workbookType
A ExcelFileType indicate the type of saved Excel file.
password
The password of the workbook. The default password is a null reference (Nothing in Visual Basic).
Exceptions
ExceptionDescription
fileName contains only white space, or contains one or more invalid characters as defined by Path.GetInvalidPathChars().
The fileName exceed the system-defined maximum length. For example, on Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 characters.
The specified fileName is invalid, (for example, it is on an unmapped drive).
An I/O error occurred while opening the fileName.
fileName specified a file that is read-only and access is not Read. fileName specified a directory. The caller does not have the required permission.
The fileName specified in path was not found.
fileName is in an invalid format.
See Also

Reference

ExcelOperator Class
ExcelOperator Members
Overload List