C# Class Cats.Documents.DocumentGenerator

Show file Open project: edgecomputing/cats Class Usage Examples

Public Methods

Method Description
DocumentGenerator ( string templateFileName, string targetPath, string>.Dictionary values, List transactionDetailsList, log4net.ILog log ) : System

Constructor for the DocumentGeneration Class

GenerateDocument ( ) : TemplateGenerationResult

Generates the Word Document and performs the Mail Merge

Private Methods

Method Description
ConvertTemplate ( ) : TemplateGenerationResult

Converts the DOTX to DOCX

Method Details

DocumentGenerator() public method

Constructor for the DocumentGeneration Class
public DocumentGenerator ( string templateFileName, string targetPath, string>.Dictionary values, List transactionDetailsList, log4net.ILog log ) : System
templateFileName string File to base the document off of
targetPath string File path for the generated document
values string>.Dictionary Key value pair containing items to be replaced in the document
transactionDetailsList List
log log4net.ILog
return System

GenerateDocument() public method

Generates the Word Document and performs the Mail Merge
public GenerateDocument ( ) : TemplateGenerationResult
return TemplateGenerationResult