GrapeCity.Windows.SpreadSheet.UI Namespace > GcSpreadSheet Class > OpenExcel Method : OpenExcel(String,ExcelOpenFlags) Method |
'Declaration Public Overloads Sub OpenExcel( _ ByVal file As System.String, _ ByVal openFlags As ExcelOpenFlags _ )
'Usage Dim instance As GcSpreadSheet Dim file As System.String Dim openFlags As ExcelOpenFlags instance.OpenExcel(file, openFlags)
public void OpenExcel( System.string file, ExcelOpenFlags openFlags )
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)
Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional (SP4), Windows XP (SP2), Windows 2008, Windows 2003 Server (SP1)