Application.AssembleDocument Method

This method assembles a document from a template and answer collection.

Syntax

void AssembleDocument(string templatePath, HDAssemblyOptions options, AnswerCollection ansColl, string documentPath, OutputOptions outputOptions)

Parameters Description
templatePath The path to the template.
options Flags that specify how the document should be assembled. See HDAssemblyOptions for details.
ansColl The answer collection. This provides the answers required to assemble the document.
documentPath The path of the document that will be assembled from the template. The extension provided designates the requested format of the document. If the document extension provided is not supported for the template format, an error occurs, and an exception is thrown.
outputOptions Options specific to the file format of the output document. This parameter may be null, PdfOutputOptions, HtmlOutputOptions, or TextOutputOptions. If not null, the parameter type must match the format of the document path file extension.