Click or drag to resize

ExcelHelper Class

Static helper methods to read and write CSV values and load DataTables from Excel or CSV files, available in Razor scripts
Inheritance Hierarchy
SystemObject
  Seal.HelpersExcelHelper

Namespace: Seal.Helpers
Assembly: SealLibrary (in SealLibrary.dll) Version: 10.0.1.0+a44cd3a7f03c2bf3cdbd971a878c679e40bed08a
Syntax
C#
public class ExcelHelper

The ExcelHelper type exposes the following members.

Constructors
 NameDescription
Public methodExcelHelperInitializes a new instance of the ExcelHelper class
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodStatic memberFromCsv Returns a CSV value with its enclosing double quotes and escaping removed
Public methodStatic memberGetExcelPackage Load an Excel Package
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberGetUniqueColumnName Returns a column name not already present in the table, appending a number if necessary
Public methodStatic memberInitCSVVBParser Create and configure a Microsoft VB TextFieldParser to parse a CSV file
Public methodStatic memberIsRowEmpty Returns true if all cells of the worksheet row are empty in the given column range
Public methodStatic memberLoadDataTableFromCSV Load a DataTable from a CSV file. If no separator is specified, ',' or ';' is detected from the first line. If noHeader is true, column names are automatic.
Public methodStatic memberLoadDataTableFromCSVVBParser(TextFieldParser) Load a DataTable from an initialized Microsoft VB Parser (the first row is used as the header)
Public methodStatic memberLoadDataTableFromCSVVBParser(String, NullableChar, Encoding) Load a DataTable from a CSV file using the Microsoft VB Parser
Public methodStatic memberLoadDataTableFromExcel Load a DataTable from an Excel file. A start and end row, and/or colum can be specified. If hasHeader is false, column names are automatic.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberToCsv Returns a value quoted and escaped for a CSV file, followed by the separator
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also