Spread Silverlight Documentation
Save(String,String) Method


The full path of file name which the workbook will be saved
The password which will be used to encrypt the file.
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 file As System.String, _
   Optional ByVal password 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 file,
   System.string password
)

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
ExceptionDescription
System.InvalidOperationExceptionthrow when the file has invalid extension.
Remarks
This method will use the file extension to determine the file type. If it has .xls extension it will save the file in Excel 97-2003 compatible format. If it has .xlsx extension, it will save in Excel 2007 format, OpenXML in this case.
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

ExcelWorkbook Class
ExcelWorkbook Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.