Class ExcelDestination<TInput>

A Excel destination creates an excel files with formatted data. The output will look similar to a csv file.

Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: ETLBox.DataFlow.Connectors
Assembly: ETLBox.Excel.dll
Syntax
    public class ExcelDestination<TInput> : DataFlowStreamDestination<TInput>, ILoggableTask, IDataFlowLogging, IDataFlowStreamDestination<TInput>, IDataFlowDestination<TInput>, IDataFlowDestination, IDataFlowComponent, IDataFlowStreamDestination
Type Parameters
NameDescription
TInput

Type of ingoing data

Constructors

ExcelDestination()

Declaration
    public ExcelDestination()

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)

ExcelDestination(string)

Declaration
    public ExcelDestination(string uri)
Parameters
TypeNameDescription
stringuri

The destination excel file name or uri

Properties

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
System.Collections.Generic.ICollection<T><ExcelColumn>

HttpContentType

The content type used when sending the http request content.

Declaration
    public override string HttpContentType { get; set; }
Property Value
TypeDescription
string
Overrides
ETLBox.DataFlow.DataFlowStreamDestination<TInput>.HttpContentType

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

TaskName

A name to identify the task or component. Every component or task comes with a default name that can be overwritten.

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

Methods

CheckParameter()

Declaration
    protected override void CheckParameter()
Overrides
ETLBox.DataFlow.DataFlowStreamDestination<TInput>.CheckParameter()

CloseStream()

Declaration
    protected override void CloseStream()
Overrides
ETLBox.DataFlow.DataFlowStreamDestination<TInput>.CloseStream()

InitStream()

Declaration
    protected override void InitStream()
Overrides
ETLBox.DataFlow.DataFlowStreamDestination<TInput>.InitStream()

PrepareParameter()

Declaration
    protected override void PrepareParameter()
Overrides
ETLBox.DataFlow.DataFlowStreamDestination<TInput>.PrepareParameter()

WriteIntoStream(TInput)

Declaration
    protected override void WriteIntoStream(TInput data)
Parameters
TypeNameDescription
TInputdata
Overrides
ETLBox.DataFlow.DataFlowStreamDestination<TInput>.WriteIntoStream(TInput)

Implements