Skip to main content

ReportDataSet

Definition

Namespace: Surya.Ab.Export.Client.Models
Assembly: Surya.Ab.Export.dll

It streamlines the process of data export by enabling users to create instance of ReportDataSet that can be directly passed to IExporter using a List of DataSetBase.

public class ReportDataSet : DataSetBase

Inheritance DataSetBase -> ReportDataSet

Properties

NameDefinition
DataRepresents an enumerable collection of objects for data storage.
MetadataRepresents an enumerable collection of PropertyMetadata objects for storing metadata.
HideTableHeaderTo hide the header of the table
TableHeaderTo create multi-level header for the table
EmptyRichHeaderBackgroundColorRepresents the background color of an empty in multi-level header

Constructors

Constructor with three overloads for creating the instance of ReportDataSet

First Structure

public ReportDataSet(DataTable dataTable)
{
}

This constructor allows creating an ReportDataSet instance from from a DataTable object, along with optional Metadata, SheetName, Header, Footer, DatasetStyle, PageBreak.

Second Structure

public ReportDataSet(IEnumerable<IEnumerable<KeyValuePair<string, object>>> keyValuePairs)
{
}

This constructor allows creating an ReportDataSet instance from a data comes as enumerable collection of key-value pairs, along with optional Metadata, SheetName, Header, Footer, DatasetStyle, PageBreak.

Third Structure

public ReportDataSet(IEnumerable<object> data)
{
}

This constructor allows creating an ReportDataSet instance from a data comes an enumerable collection of typed objects, along with optional Metadata, SheetName, Header, Footer, DatasetStyle, PageBreak.


Edit on GitHub