DocumentAssembler

DocumentAssembler class

Provides routines to populate template documents with data and a set of settings to control these routines.

public class DocumentAssembler

Constructors

Name Description
DocumentAssembler() Initializes a new instance of this class.

Properties

Name Description
BarcodeSettings { get; } Gets a set of settings controlling barcode generation while assembling a document.
KnownTypes { get; } Gets an unordered set (that is, a collection of unique items) containing Type objects which fully or partially qualified names can be used within document templates processed by this assembler instance to invoke the corresponding types’ static members, perform type casts, etc.
Options { get; set; } Gets or sets a set of flags controlling behavior of this DocumentAssembler instance while assembling a document.
static UseReflectionOptimization { get; set; } Gets or sets a value indicating whether invocations of custom type members performed via reflection API are optimized using dynamic class generation or not. The default value is true.

Methods

Name Description
AssembleDocument(Stream, Stream, params DataSourceInfo[]) Loads a template document from the specified source stream, populates the template document with data from the specified single or multiple sources, and stores the result document to the target stream using default LoadSaveOptions.
AssembleDocument(string, string, params DataSourceInfo[]) Loads a template document from the specified source path, populates the template document with data from the specified single or multiple sources, and stores the result document to the target path using default LoadSaveOptions.
AssembleDocument(Stream, Stream, LoadSaveOptions, params DataSourceInfo[]) Loads a template document from the specified source stream, populates the template document with data from the specified single or multiple sources, and stores the result document to the target stream using the given LoadSaveOptions.
AssembleDocument(string, string, LoadSaveOptions, params DataSourceInfo[]) Loads a template document from the specified source path, populates the template document with data from the specified single or multiple sources, and stores the result document to the target path using the given LoadSaveOptions.

See Also