The DocumentController class is a .NET component that can be used to perform the necessary document handling on the server, when using a control such as the DocumentServer.Web.DocumentViewer. The DocumentController class can be found in the TXTextControl.DocumentServer namespace. It is derived from the System.ComponentModel.Component class. The following describes only the properties and methods defined directly by the DocumentController class. For a list of properties, methods and events inherited from the System.ComponentModel.Component class see the .NET Framework reference.

Syntax

public class DocumentController : Component
Public Class DocumentController
  Inherits Component

Introduced: 15.0.

Constructors

Constructor Description
DocumentController Initializes a new instance of the DocumentController class.

Methods

Method Description
Dispose Frees all resources used by the DocumentController instance.
GetBlockFieldNames Gets a list of the names of all the application fields which are contained inside the specified merge block.
GetBlockNames Gets a list of the names of all the merge blocks contained in the document.
GetFieldAdapters Gets a collection of adapters for all application fields in the specified scope.
GetFieldNames Get field names.
Load Loads a document from a file that is used for further processing.
LoadFromMemory Loads a document from memory that is used for further processing.
MergeField Sets the value of the form field specified through the given adapter to the submitted value.
Save Saves the document that is currently loaded in the DocumentController to a file.
SaveToMemory Saves the document that is currently loaded in the DocumentController.
Twips2Pixels Converts a value in twips to a value in pixels according to a specified resolution.

Properties

Property Description
CharCodeChecked Gets or sets the character's code that is used to render checked check boxes.
CharCodeUnchecked Gets or sets the character's code that is used to render unchecked check boxes.
CheckBoxFont Gets or sets the font used for rendering check boxes.
DpiX Gets or sets the horizontal DPI value used for display-related calculations.
DpiY Gets or sets the vertical DPI value used for display-related calculations.
Pages Gets a collection of all pages contained in the currently loaded document.
TextComponent Gets or sets the object of type ServerTextControl that is associated with the DocumentController component.