Spread Silverlight Documentation
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
System.ArgumentExceptionfileName contains only white space, or contains one or more invalid characters as defined by Path.GetInvalidPathChars().
System.IO.PathTooLongExceptionThe 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.
System.IO.DirectoryNotFoundExceptionThe specified fileName is invalid, (for example, it is on an unmapped drive).
System.IO.IOExceptionAn I/O error occurred while opening the fileName.
System.UnauthorizedAccessExceptionfileName specified a file that is read-only and access is not Read. fileName specified a directory. The caller does not have the required permission.
System.IO.FileNotFoundExceptionThe fileName specified in path was not found.
System.NotSupportedExceptionfileName is in an invalid format.
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

ExcelOperator Class
ExcelOperator Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.