Table of Contents

TTMSFNCWXCustomDocxViewer Class

Implements the document viewer that renders Word (.docx) documents in a browser-based surface, with page navigation, zooming, and rendering options. Use the published descendant for design-time use.

API unit family: TMSFNCWXDocxViewer Inherits from: TTMSFNCCustomWEBControl

Syntax

TTMSFNCWXCustomDocxViewer = class(TTMSFNCCustomWEBControl)

Properties

Name Description
ActivePage Gets or sets the one-based number of the currently active page. Setting the value scrolls the corresponding page into view.
ActivePageIndex Gets or sets the zero-based index of the currently active page. Setting the value scrolls the corresponding page into view.
PageCount Gets the total number of pages in the rendered document.

Methods

Name Description
EndUpdate Ends a batched update and re-renders the document once the update count reaches zero.
LoadFromBase64 Loads a document from a Base64-encoded string and renders it in the viewer.
LoadFromFile Loads a document from a file on disk, encoding its content and rendering it in the viewer.
NextPage Scrolls the page following the currently active page into view.
PreviousPage Scrolls the page preceding the currently active page into view.
ShowPage Scrolls the requested page into view.
ZoomIn Increases the zoom level of the rendered document by one step.
ZoomOut Decreases the zoom level of the rendered document by one step.