Spread WPF Documentation
OpenExcel(String,String) Method
Example 


GrapeCity.Windows.SpreadSheet.UI Namespace > GcSpreadSheet Class > OpenExcel Method : OpenExcel(String,String) Method
The path to load the file from.
The password used to open the file.
Opens an Excel Compound Document File and loads it into GcSpreadSheet.
Syntax
'Declaration
 
Public Overloads Sub OpenExcel( _
   ByVal file As System.String, _
   ByVal password As System.String _
) 
'Usage
 
Dim instance As GcSpreadSheet
Dim file As System.String
Dim password As System.String
 
instance.OpenExcel(file, password)
public void OpenExcel( 
   System.string file,
   System.string password
)

Parameters

file
The path to load the file from.
password
The password used to open the file.
Example
This example uses the OpenExcel method.
gcSpreadSheet1.OpenExcel("c:\\zipfile\\test.xlsx");
//gcSpreadSheet1.OpenExcel("c:\\zipfile\\test.xlsx", "1NaMe5");
//gcSpreadSheet1.OpenExcel("c:\\zipfile\\test.xlsx", GrapeCity.Windows.SpreadSheet.Data.ExcelOpenFlags.DataAndFormulasOnly, "1NaMe5");
//gcSpreadSheet1.OpenExcel("c:\\zipfile\\test.xlsx", GrapeCity.Windows.SpreadSheet.Data.ExcelOpenFlags.RowAndColumnHeaders);
GcSpreadSheet1.OpenExcel("c:\zipfile\test.xlsx")
'GcSpreadSheet1.OpenExcel("c:\zipfile\test.xlsx", "1NaMe5")
'GcSpreadSheet1.OpenExcel("c:\zipfile\test.xlsx", GrapeCity.Windows.SpreadSheet.Data.ExcelOpenFlags.DataAndFormulasOnly, "1NaMe5")
'GcSpreadSheet1.OpenExcel("c:\zipfile\test.xlsx", GrapeCity.Windows.SpreadSheet.Data.ExcelOpenFlags.RowAndColumnHeaders)
See Also

Reference

GcSpreadSheet Class
GcSpreadSheet Members
Overload List