TTMSFNCWXDocx Class
Document generation component that exposes the document model and export operations as a design-time component with published events.
API unit family: TMSFNCWXDocx
Inherits from: TTMSFNCWXCustomDocx
Syntax
TTMSFNCWXDocx = class(TTMSFNCWXCustomDocx)
Remarks
Inherits all behavior from TTMSFNCWXCustomDocx and surfaces its notification events for use in the IDE.
Properties
| Name | Description |
|---|---|
| Document | The document model that holds the content to generate, organized into sections, paragraphs, tables and other elements. (inherited from TTMSFNCWXCustomDocx) |
Methods
| Name | Description |
|---|---|
| FindByID | Finds a document element by its identifier. (inherited from TTMSFNCWXCustomDocx) |
| GetDocxAsBase64 | Generates the document from Document and returns it as a Base64 encoded string. (inherited from TTMSFNCWXCustomDocx) |
| GetDocxAsFile | Generates the document from Document and saves it to a local file. (inherited from TTMSFNCWXCustomDocx) |
| LoadJSONTemplate | Loads document settings into Document from a JSON template string. (inherited from TTMSFNCWXCustomDocx) |
Events
| Name | Description |
|---|---|
| OnDownloadAsBase64 | Occurs after a document is generated and returned as a Base64 encoded string. (inherited from TTMSFNCWXCustomDocx) |
| OnDownloadAsFile | Occurs after a document is generated and saved to a local file. (inherited from TTMSFNCWXCustomDocx) |
| OnInitialized | Occurs when the component has finished initializing and is ready to generate documents. (inherited from TTMSFNCWXCustomDocx) |