TTMSFNCWXCustomDocx Class
Base class for the document generation component. Builds a document from a structured model and exports it to a file or a Base64 encoded string through an embedded web view.
API unit family: TMSFNCWXDocx
Inherits from: TTMSFNCCustomWEBComponent
Syntax
TTMSFNCWXCustomDocx = class(TTMSFNCCustomWEBComponent)
Remarks
Populate Document with sections and content, then call GetDocxAsFile or GetDocxAsBase64 to export. Use the descendant TTMSFNCWXDocx to drop the component on a form with published events.
Properties
| Name | Description |
|---|---|
| Document | The document model that holds the content to generate, organized into sections, paragraphs, tables and other elements. |
Methods
| Name | Description |
|---|---|
| FindByID | Finds a document element by its identifier. |
| GetDocxAsBase64 | Generates the document from Document and returns it as a Base64 encoded string. |
| GetDocxAsFile | Generates the document from Document and saves it to a local file. |
| LoadJSONTemplate | Loads document settings into Document from a JSON template string. |