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
    public class ExcelDestination<TInput> : DataFlowStreamDestination<TInput>, IDataFlowLogging, IDataFlowStreamDestination<TInput>, IDataFlowDestination<TInput>, IDataFlowStreamDestination, IDataFlowDestination, IDataFlowComponent, ILoggableTask
Type Parameters
NameDescription
TInput

Type of ingoing data

Constructors

ExcelDestination()

Declaration
    public ExcelDestination()

ExcelDestination(string)

Declaration
    public ExcelDestination(string uri)
Parameters
TypeNameDescription
stringuri

The destination excel file name or uri

ExcelDestination(string, ResourceType)

Declaration
    public ExcelDestination(string uri, ResourceType resourceType)
Parameters
TypeNameDescription
stringuri

The destination excel file name or uri

ResourceTyperesourceType

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
    public bool AppendToFile { get; set; }
Property Value
TypeDescription
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
    public ICollection<ExcelColumn> ExcelColumns { get; set; }
Property Value
TypeDescription
ICollection<ExcelColumn>

HttpContentType

The content type used when sending the http request content.

Declaration
    public override string HttpContentType { get; set; }
Property Value
TypeDescription
string
Overrides

SheetName

The sheet name that will hold the data

Declaration
    public string SheetName { get; set; }
Property Value
TypeDescription
string

SuppressHeader

If set to true, no header row is written into the output

Declaration
    public bool SuppressHeader { get; set; }
Property Value
TypeDescription
bool

Methods

CheckParameter()

Declaration
    protected override void CheckParameter()
Overrides

CloseStream()

Declaration
    protected override void CloseStream()
Overrides

InitStream()

Declaration
    protected override void InitStream()
Overrides

PrepareParameterForCheck()

Declaration
    protected override void PrepareParameterForCheck()
Overrides

Reset()

Declaration
    protected override void Reset()
Overrides

WriteIntoStream(TInput)

Declaration
    protected override void WriteIntoStream(TInput data)
Parameters
TypeNameDescription
TInputdata
Overrides

Implements