TXTextControl.DocumentServer.Web.DocumentViewer.LoadDocument Method

Loads a document that is used for further processing.

LoadDocument(String)

Loads a document from a specific path.

[C#]
public void LoadDocument(string path);
[Visual Basic]
Public Sub LoadDocument(ByVal path As String)
Parameter Description
path

Specifies the document file to be loaded.

LoadDocument(String, FileFormat)

Loads a document from a specific path and a specific document format.

[C#]
public void LoadDocument(string path, DocumentServer.FileFormat format);
[Visual Basic]
Public Sub LoadDocument(ByVal path As String, ByVal format As DocumentServer.FileFormat)
Parameter Description
path

Specifies the document file to be loaded.

format

Specifies one of the DocumentServer.FileFormat values.

Remarks

If only the path parameter is specified, the file type is determined by the file's extension.

See Also