Méthode | Description | |
---|---|---|
ExcelReader ( ) : System | ||
IsTemplate ( Stream file ) : bool |
return true if the Excel file based on a template
|
|
ReadFile ( Stream file, string fileName, |
Read a Excel row by row Convert the rows into a datatuple based on the datastructure. Return a list of datatuples
|
|
ReadFile ( Stream file, string fileName, |
Read a Excel Template file Convert the rows into a datatuple based on the datastructure. Return a list of datatuples Only when excel template is in use |
|
ReadFile ( Stream file, string fileName, |
Read a Excel Template file wth package size Convert the rows into a datatuple based on the datastructure. Return a list of datatuples Only when excel template is in use |
|
ReadValuesFromFile ( Stream file, string fileName,
|
|
|
ValidateFile ( Stream file, string fileName, |
Validate a Excel Template file Only when excel template is in use |
Méthode | Description | |
---|---|---|
ReadRows ( DocumentFormat.OpenXml.Packaging.WorksheetPart worksheetPart, int startRow, int endRow ) : void |
Read rows from worksheetPart starts from a startrow and ends on the endrow
|
|
ValidateDatastructure ( DocumentFormat.OpenXml.Packaging.WorksheetPart worksheetPart, int startRow, int endRow ) : bool |
Validate Datastructure from file true = valid false = not valid
|
|
ValidateRows ( DocumentFormat.OpenXml.Packaging.WorksheetPart worksheetPart, int startRow, int endRow ) : void |
Validate rows from file
|
Méthode | Description | |
---|---|---|
BuildDefinedNamesTable ( DocumentFormat.OpenXml.Packaging.WorkbookPart workbookPart ) : List |
generate a list of DefinedNameVal which includes all information about areas in a Excel template file like Data and VariableIdentifiers from the excel file
|
|
GetColumnName ( string cellName ) : string |
Get the cloumn name from a cell
|
|
GetColumnNumber ( string columnName ) : int |
Get Column number based on a column name
|
|
GetRowNumber ( string cellName ) : int |
Get the row number from a cell
|
|
GetSubmitedVariableIdentifier ( DocumentFormat.OpenXml.Packaging.WorksheetPart worksheetPart, int startRow, int endRow ) : List |
Generate a list of VariableIdentifiers from the excel file
|
|
GetValuesFromRows ( DocumentFormat.OpenXml.Packaging.WorksheetPart worksheetPart, List
|
|
|
GetWorkSheetPart ( DocumentFormat.OpenXml.Packaging.WorkbookPart workbookPart, |
Return the worksheet which include a specific area
|
|
IsEmpty ( Row row ) : bool | ||
RowToList ( Row r ) : List |
Convert a excel row to a list of strings Every cell is one value
|
|
RowToList ( Row r, List |
Convert a excel row to a list of strings Every cell is one value
|
public IsTemplate ( Stream file ) : bool | ||
file | Stream | file as stream |
Résultat | bool |
public ReadFile ( Stream file, string fileName, |
||
file | Stream | File as stream |
fileName | string | Name of the file |
fri | FileReaderInfo (ExcelFileReaderInfo) for additional Informations to read the file | |
sds | StructuredDataStructure of a dataset | |
datasetId | long | Datasetid of a dataset |
Résultat | List |
public ReadFile ( Stream file, string fileName, |
||
file | Stream | File as stream |
fileName | string | Name of the file |
sds | StructuredDataStructure of a dataset | |
datasetId | long | Datasetid of a dataset |
Résultat | List |
public ReadFile ( Stream file, string fileName, |
||
file | Stream | File as stream |
fileName | string | Name of the file |
sds | StructuredDataStructure of a dataset | |
datasetId | long | Datasetid of a dataset |
packageSize | int | |
Résultat | List |
protected ReadRows ( DocumentFormat.OpenXml.Packaging.WorksheetPart worksheetPart, int startRow, int endRow ) : void | ||
worksheetPart | DocumentFormat.OpenXml.Packaging.WorksheetPart | part of a excel worksheet |
startRow | int | start row |
endRow | int | end row |
Résultat | void |
public ReadValuesFromFile ( Stream file, string fileName,
|
||
file | Stream | |
fileName | string | |
sds | ||
datasetId | long | |
variableList | List |
|
packageSize | int | |
Résultat | List
|
protected ValidateDatastructure ( DocumentFormat.OpenXml.Packaging.WorksheetPart worksheetPart, int startRow, int endRow ) : bool | ||
worksheetPart | DocumentFormat.OpenXml.Packaging.WorksheetPart | Part of a excel worksheet where the datastructure is located |
startRow | int | Row where the DataStructure is starting |
endRow | int | Row where the DataStructure is ending |
Résultat | bool |
public ValidateFile ( Stream file, string fileName, |
||
file | Stream | File as stream |
fileName | string | Name of the file |
sds | StructuredDataStructure of a dataset | |
datasetId | long | Datasetid of a dataset |
Résultat | void |
protected ValidateRows ( DocumentFormat.OpenXml.Packaging.WorksheetPart worksheetPart, int startRow, int endRow ) : void | ||
worksheetPart | DocumentFormat.OpenXml.Packaging.WorksheetPart | Part of a excel worksheet where the datastructure is located |
startRow | int | Rows starting |
endRow | int | Rows ending |
Résultat | void |