C# Class Owl.Excel.DataTableImporter

Afficher le fichier Open project: FerHenrique/Owl Class Usage Examples

Méthodes publiques

Méthode Description
DataTableImporter ( ) : System
ImportDataSet ( SpreadsheetDocument package, DataSet dataset ) : void
ImportDataTable ( SpreadsheetDocument package, DataTable table, string sheetName ) : void

Private Methods

Méthode Description
CreateContentRow ( DataRow dataRow, int rowIndex ) : Row
CreateNumberCell ( int columnIndex, int rowIndex, object cellValue, Type dataType ) : Cell
CreateTextCell ( int columnIndex, int rowIndex, object cellValue ) : Cell
GetColumnName ( int columnIndex ) : string

Gets the Excel column name based on a supplied index number.

Method Details

DataTableImporter() public méthode

public DataTableImporter ( ) : System
Résultat System

ImportDataSet() public méthode

public ImportDataSet ( SpreadsheetDocument package, DataSet dataset ) : void
package SpreadsheetDocument
dataset System.Data.DataSet
Résultat void

ImportDataTable() public méthode

public ImportDataTable ( SpreadsheetDocument package, DataTable table, string sheetName ) : void
package SpreadsheetDocument
table System.Data.DataTable
sheetName string
Résultat void