Spread WPF Documentation
ExcelOpenFlags Enumeration
Example Example 


Specifies what part of the Excel-compatible file to load into the spreadsheet.
Syntax
'Declaration
 
<System.FlagsAttribute()>
Public Enum ExcelOpenFlags 
   Inherits System.Enum
'Usage
 
Dim instance As ExcelOpenFlags
[System.Flags()]
public enum ExcelOpenFlags : System.Enum 
Members
MemberDescription
ColumnHeadersLoads column headers from frozen rows in the Excel-compatible file into the spreadsheet.
DataAndFormulasOnlyLoads formulas from the Excel-compatible file into the spreadsheet.
DataOnlyLoads only the data from the Excel-compatible file into the spreadsheet.
DoNotRecalculateAfterLoadAvoids recalculation after loading the Excel-compatible file (by not setting the SheetView.AutoCalculation property to true and not calling SheetView.Recalculate()).
NoFlagsSetOpens the spreadsheet from the Excel-compatible file with no special options.
RowAndColumnHeadersLoads row headers from frozen columns and column headers from frozen rows.
RowHeadersLoads row headers from frozen columns in the Excel-compatible file into the spreadsheet.
Example
This example uses the ExcelOpenFlags enumeration.
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)
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         GrapeCity.Windows.SpreadSheet.Data.ExcelOpenFlags

Requirements

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)

See Also

Reference

GrapeCity.Windows.SpreadSheet.Data Namespace

 

 


Copyright © GrapeCity, inc. All rights reserved.