Save the workbook to stream, it will use the specified file type as the file format, the file will be encrypt if the password is not null.
Syntax
'Declaration
Public Overloads Sub Save( _
ByVal As System.String, _
Optional ByVal As System.String _
)
'Usage
Dim instance As ExcelWorkbook
Dim file As System.String
Dim password As System.String
instance.Save(file, password)
public void Save(
System.string ,
System.string
)
Parameters
- file
- The full path of file name which the workbook will be saved
- password
- The password which will be used to encrypt the file.
Exceptions
Exception | Description |
System.InvalidOperationException | throw when the file has invalid extension. |
See Also