ExcelDestination<TInput>
Class ExcelDestination<TInput>
A Excel destination creates an excel files with formatted data. The output will look similar to a csv file.
Inherited Members
Namespace: ETLBox.Excel
Assembly: ETLBox.Excel.dll
Syntax
Type Parameters
Name | Description |
---|---|
TInput | Type of ingoing data |
Constructors
ExcelDestination()
Declaration
ExcelDestination(string)
Declaration
Parameters
Type | Name | Description |
---|---|---|
string | uri | The destination excel file name or uri |
ExcelDestination(string, ResourceType)
Declaration
Parameters
Type | Name | Description |
---|---|---|
string | uri | The destination excel file name or uri |
ResourceType | resourceType | Specifies if data is loaded from a file, a web endpoint or other storage types (e.g. Azure Blob Storage) |
Properties
AppendToFile
By default, a new excel file is created. Set this property to true to append data to an existing file. New data will be appended after the last row on the selected sheet (identified by SheetName).
Declaration
Property Value
Type | Description |
---|---|
bool |
ExcelColumns
List of ExcelColumn attributes to map the properties with the right excel column. If you are providing a mapping, all properties that you want to include in the output file need to be specified, and all specified columns require a ColumnIndex. If left empty, the order of the output columns is equal to the order of the properties in the object definition.
Declaration
Property Value
Type | Description |
---|---|
ICollection<ExcelColumn> |
HttpContentType
The content type used when sending the http request content.
Declaration
Property Value
Type | Description |
---|---|
string |
Overrides
SheetName
The sheet name that will hold the data
Declaration
Property Value
Type | Description |
---|---|
string |
SuppressHeader
If set to true, no header row is written into the output
Declaration
Property Value
Type | Description |
---|---|
bool |
Methods
CheckParameter()
Declaration
Overrides
CloseStream()
Declaration
Overrides
InitStream()
Declaration
Overrides
PrepareParameterForCheck()
Declaration
Overrides
Reset()
Declaration
Overrides
WriteIntoStream(TInput)
Declaration
Parameters
Type | Name | Description |
---|---|---|
TInput | data |