C# Class Reports.ReportHandler

Class contain the base information for report configs (Name of the report, the path of the generated .pdf and the dictionary)
Inheritance: Utils.ProgressHandler
Afficher le fichier Open project: ERTMSSolutions/ERTMSFormalSpecs Class Usage Examples

Méthodes publiques

Méthode Description
BuildDocument ( ) : MigraDoc.DocumentObjectModel.Document

This method must be implemented to create the document contents

ExecuteWork ( ) : void

Generates the file in the background thread

Méthodes protégées

Méthode Description
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

Method Details

BuildDocument() public abstract méthode

This method must be implemented to create the document contents
public abstract BuildDocument ( ) : MigraDoc.DocumentObjectModel.Document
Résultat MigraDoc.DocumentObjectModel.Document

CleanTempFiles() protected méthode

Removes all temporary files
protected CleanTempFiles ( ) : void
Résultat void

CreateFileName() protected méthode

Creates the full file name from a given title
protected CreateFileName ( string title ) : void
title string Name of the report
Résultat void

CreateTempFile() protected méthode

Creates a temporary file, with the provided extension
protected CreateTempFile ( string extension ) : string
extension string
Résultat string

ExecuteWork() public méthode

Generates the file in the background thread
public ExecuteWork ( ) : void
Résultat void

GenerateOutputFile() protected méthode

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
Résultat bool

ReportHandler() protected méthode

Constructor
protected ReportHandler ( DataDictionary.Dictionary dictionary ) : System
dictionary DataDictionary.Dictionary
Résultat System