
The DocumentViewer class is a .NET component that can be used to display documents in the web browser in ASP.NET projects. The DocumentViewer class can be found in the TXTextControl.DocumentViewer.Web namespace. It is derived from the System.Web.UI.WebControls.CompositeControl class. The following describes only the properties and methods directly defined by the DocumentViewer class. For a list of properties, methods and events inherited from the System.Web.UI.WebControls.CompositeControl class see the .NET Framework reference.
Introduced: 15.0.
[C#]
public class DocumentViewer : CompositeControl
[Visual Basic]
Public Class DocumentViewer
Inherits CompositeControl
| Constructor | Description | |
| DocumentServer.Web.DocumentViewer | Initializes a new instance of the DocumentViewer class. |
| Property | Description | |
| DocumentController | Gets or sets the DocumentServer.DocumentController object that is associated with the DocumentServer.Web.DocumentViewer component. | |
| DocumentPath | Gets or sets the path to the document, which will be displayed in the DocumentServer.Web.DocumentViewer. The document will be processed and displayed the next time the | |
| EditMode | Gets or sets whether the document viewer renders forms editable, i.e. | |
| FieldBorderColor | Gets or sets the color of the field borders, that is used when FieldBorderStyle is not None. | |
| FieldBorderStyle | Gets or sets whether and if so how the field borders are rendered, when EditMode is set to Edit. | |
| Interpolation | Gets or sets whether the rendered document is interpolated during the process. | |
| InterpolationMode | Gets or sets the interpolation mode which is used for rendering the document. | |
| PageNumber | Gets or sets the page number that the DocumentServer.Web.DocumentViewer is displaying or should display respectively. | |
| ToolBar | Specifies whether the document viewer's tool bar is displayed or not. | |
| TotalPages | Gets the total number of pages the loaded document contains. | |
| ZoomFactor | Gets or sets the zoom factor in percent. | |
| ZoomTo | Gets or sets the zoom behavior of the DocumentServer.Web.DocumentViewer. |
| Method | Description | |
| Dispose | Frees all resources used by the DocumentViewer instance. | |
| LoadDocument | Loads a document from a file that is used for further processing. | |
| LoadDocumentFromMemory | Loads a document from a file that is used for further processing. | |
| Save | Initiates saving the currently loaded document. | |
| SaveUserInput | Initiates saving the currently loaded form's user input. |
| Event | Description | |
| SaveDocument | Occurs when DocumentServer.Web.DocumentViewer.Save has been called, while specifying the format parameter only. | |
| SaveFormData | Occurs when DocumentServer.Web.DocumentViewer.SaveUserInput has been called. |