Skip to main content

SingleDataSetOptions

Definition

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

Provides the optional properties needed for Export without creating DataSets

public class SingleDataSetOptions : ExportOptions

Inheritance ExportOptions -> SingleDataSetOptions

Properties

NameDefinition
MetadataMetadata for the columns in data
HeaderHeader for the Dataset
FooterFooter for the Dataset
SheetNameName of the sheet in which the given DataSet will be present
HierarchyReportItemHeaderNameName of the 1st Column in Hierarchy Export
DatasetStyleStyle properties for the DataSet
FitToPageBool property to stop wrapping of data due to columns into multiple pages in PDF
HeaderMergeCellCountNumbers of cells to be merged to Display Dataset Header
FooterMergeCellCountNumbers of cells to be merged to Display Dataset Footer
ReportItemColumnWidthWidth of the 1st column of Hierarchy Table
ReportItemTextAlignAlignment properties for the values in 1st column of Hierarchy Table

Structure

public class SingleDataSetOptions : ExportOptions
{
public IEnumerable<PropertyMetadata>? Metadata { get; set; }
public string? Header { get; set; }
public string? Footer { get; set; }
public string? SheetName { get; set; }
public string? HierarchyReportItemHeaderName { get; set; }
public DatasetStyle? DatasetStyle { get; set; }
public bool? FitToPage { get; set; }
public int HeaderMergeCellCount { get; set; }
public int FooterMergeCellCount { get; set; }
public int ReportItemColumnWidth { get; set; }
public AbAlignment ReportItemTextAlign { get; set; }
public ImageDatasetDisplay ImageDatasetDisplay { get; set; }
}

Structure

var exportOption = new SingleDataSetOptions()
{
Metadata = metadata,
SheetName = "Sheet 1",
Header = "Header"
};

Edit on GitHub