Spread Silverlight Documentation
Save(Stream,ExcelFileType,String) Method


The stream the workbook will be saved in
the ExcelFileType specifics the file type. there are two major file type in Excel, if you want to save an Excel 97-2003 compatible file, use GrapeCity.Excel.ExcelFileType.Biff, otherwise, use ExcelFileType.OpenXML to save a Excel 2007 or later file.
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 outStream As System.IO.Stream, _
   ByVal workbookType As ExcelFileType, _
   Optional ByVal password As System.String _
) 
'Usage
 
Dim instance As ExcelWorkbook
Dim outStream As System.IO.Stream
Dim workbookType As ExcelFileType
Dim password As System.String
 
instance.Save(outStream, workbookType, password)
public void Save( 
   System.IO.Stream outStream,
   ExcelFileType workbookType,
   System.string password
)

Parameters

outStream
The stream the workbook will be saved in
workbookType
the ExcelFileType specifics the file type. there are two major file type in Excel, if you want to save an Excel 97-2003 compatible file, use GrapeCity.Excel.ExcelFileType.Biff, otherwise, use ExcelFileType.OpenXML to save a Excel 2007 or later file.
password
The password which will be used to encrypt the file.
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.