C# Класс Reports.ReportHandler

Class contain the base information for report configs (Name of the report, the path of the generated .pdf and the dictionary)
Наследование: Utils.ProgressHandler
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
BuildDocument ( ) : MigraDoc.DocumentObjectModel.Document

This method must be implemented to create the document contents

ExecuteWork ( ) : void

Generates the file in the background thread

Защищенные методы

Метод Описание
CleanTempFiles ( ) : void

Removes all temporary files

CreateFileName ( string title ) : void

Creates the full file name from a given title

CreateTempFile ( string extension ) : string

Creates a temporary file, with the provided extension

GenerateOutputFile ( MigraDoc.DocumentObjectModel.Document document ) : bool

Produces the .pdf corresponding to the book, according to user's choices specified in the report config

ReportHandler ( DataDictionary.Dictionary dictionary ) : System

Constructor

Описание методов

BuildDocument() публичный абстрактный Метод

This method must be implemented to create the document contents
public abstract BuildDocument ( ) : MigraDoc.DocumentObjectModel.Document
Результат MigraDoc.DocumentObjectModel.Document

CleanTempFiles() защищенный Метод

Removes all temporary files
protected CleanTempFiles ( ) : void
Результат void

CreateFileName() защищенный Метод

Creates the full file name from a given title
protected CreateFileName ( string title ) : void
title string Name of the report
Результат void

CreateTempFile() защищенный Метод

Creates a temporary file, with the provided extension
protected CreateTempFile ( string extension ) : string
extension string
Результат string

ExecuteWork() публичный Метод

Generates the file in the background thread
public ExecuteWork ( ) : void
Результат void

GenerateOutputFile() защищенный Метод

Produces the .pdf corresponding to the book, according to user's choices specified in the report config
protected GenerateOutputFile ( MigraDoc.DocumentObjectModel.Document document ) : bool
document MigraDoc.DocumentObjectModel.Document The document to be created
Результат bool

ReportHandler() защищенный Метод

Constructor
protected ReportHandler ( DataDictionary.Dictionary dictionary ) : System
dictionary DataDictionary.Dictionary
Результат System