C# Class PdfRpt.FluentInterface.PdfReport

PdfReport Builder Class.
Show file Open project: VahidN/PdfReport Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
DefaultFonts ( Action pdfRptDefaultFontsBuilder ) : PdfReport

Sets the documents's default fonts.

DocumentPreferences ( Action pdfRptPagePreferencesBuilder ) : PdfReport

Document settings

Encrypt ( Action pdfRptEncryptedFileBuilder ) : PdfReport

Sets the encryption preferences for this document.

Export ( Action pdfRptExportToBuilder ) : PdfReport

Sets the desired exporters such as ExportToExcel. You can set multiple exporters here.

Generate ( Action pdfRptFileBuilder, bool debugMode = false ) : IPdfReportData

Generates the final PDF file.

GenerateAsByteArray ( bool debugMode = false ) : byte[]

Generates the final PDF file.

MainTableAdHocColumnsConventions ( Action mainTableAdHocColumnsConventionsBuilder ) : PdfReport

If you don't set PdfColumnsDefinitions, list of the main table's columns will be extracted from MainTableDataSource automatically. Here you can control how cells should be rendered based on their specific data types.

MainTableColumns ( Action mainTableColumnsBuilder ) : PdfReport

Defining how a property of MainTableDataSource should be rendered as a column's cell.

MainTableDataSource ( Action mainTableDataSourceBuilder ) : PdfReport

Main table's data source. The data to render.

MainTableEvents ( Action mainTableEventsBuilder ) : PdfReport

Sets the Main table's cells and rows events.

MainTablePreferences ( Action pdfRptMainTablePreferencesBuilder ) : PdfReport

MainTable's general properties

MainTableSummarySettings ( Action mainTableSummarySettingsBuilder ) : PdfReport

Pages and groups summary values settings

MainTableTemplate ( Action mainTableTemplateBuilder ) : PdfReport

Sets the default template.

PagesFooter ( Action pagesFooterBuilder ) : PdfReport

Defines custom footer of the each page.

PagesHeader ( Action pagesHeaderBuilder ) : PdfReport

Defines dynamic headers for pages and individual groups.

PdfReport ( ) : System

ctor.

Sign ( Action pdfRptSignedFileBuilder ) : PdfReport

Sets ths digital signature's info.

Method Details

DefaultFonts() public method

Sets the documents's default fonts.
public DefaultFonts ( Action pdfRptDefaultFontsBuilder ) : PdfReport
pdfRptDefaultFontsBuilder Action
return PdfReport

DocumentPreferences() public method

Document settings
public DocumentPreferences ( Action pdfRptPagePreferencesBuilder ) : PdfReport
pdfRptPagePreferencesBuilder Action Document settings builder
return PdfReport

Encrypt() public method

Sets the encryption preferences for this document.
public Encrypt ( Action pdfRptEncryptedFileBuilder ) : PdfReport
pdfRptEncryptedFileBuilder Action encryption preferences builder
return PdfReport

Export() public method

Sets the desired exporters such as ExportToExcel. You can set multiple exporters here.
public Export ( Action pdfRptExportToBuilder ) : PdfReport
pdfRptExportToBuilder Action DataExporter Builder
return PdfReport

Generate() public method

Generates the final PDF file.
public Generate ( Action pdfRptFileBuilder, bool debugMode = false ) : IPdfReportData
pdfRptFileBuilder Action Pdf RptFile Builder Settings
debugMode bool Run in debug mode
return IPdfReportData

GenerateAsByteArray() public method

Generates the final PDF file.
public GenerateAsByteArray ( bool debugMode = false ) : byte[]
debugMode bool
return byte[]

MainTableAdHocColumnsConventions() public method

If you don't set PdfColumnsDefinitions, list of the main table's columns will be extracted from MainTableDataSource automatically. Here you can control how cells should be rendered based on their specific data types.
public MainTableAdHocColumnsConventions ( Action mainTableAdHocColumnsConventionsBuilder ) : PdfReport
mainTableAdHocColumnsConventionsBuilder Action Conventions Builder
return PdfReport

MainTableColumns() public method

Defining how a property of MainTableDataSource should be rendered as a column's cell.
public MainTableColumns ( Action mainTableColumnsBuilder ) : PdfReport
mainTableColumnsBuilder Action Columns Builder
return PdfReport

MainTableDataSource() public method

Main table's data source. The data to render.
public MainTableDataSource ( Action mainTableDataSourceBuilder ) : PdfReport
mainTableDataSourceBuilder Action Data Source Builder
return PdfReport

MainTableEvents() public method

Sets the Main table's cells and rows events.
public MainTableEvents ( Action mainTableEventsBuilder ) : PdfReport
mainTableEventsBuilder Action Events Builder
return PdfReport

MainTablePreferences() public method

MainTable's general properties
public MainTablePreferences ( Action pdfRptMainTablePreferencesBuilder ) : PdfReport
pdfRptMainTablePreferencesBuilder Action MainTable's general properties builder
return PdfReport

MainTableSummarySettings() public method

Pages and groups summary values settings
public MainTableSummarySettings ( Action mainTableSummarySettingsBuilder ) : PdfReport
mainTableSummarySettingsBuilder Action Summary Settings Builder
return PdfReport

MainTableTemplate() public method

Sets the default template.
public MainTableTemplate ( Action mainTableTemplateBuilder ) : PdfReport
mainTableTemplateBuilder Action Template Builder
return PdfReport

PagesFooter() public method

Defines custom footer of the each page.
public PagesFooter ( Action pagesFooterBuilder ) : PdfReport
pagesFooterBuilder Action Pages Footer Builder
return PdfReport

PagesHeader() public method

Defines dynamic headers for pages and individual groups.
public PagesHeader ( Action pagesHeaderBuilder ) : PdfReport
pagesHeaderBuilder Action Pages Header Builder
return PdfReport

PdfReport() public method

ctor.
public PdfReport ( ) : System
return System

Sign() public method

Sets ths digital signature's info.
public Sign ( Action pdfRptSignedFileBuilder ) : PdfReport
pdfRptSignedFileBuilder Action digital signature's info builder
return PdfReport