TXTextControl.DocumentServer.Web.DocumentViewer.Save Method

Initiates saving the currently loaded document. The actual saving is performed by a method which has to be bound to the DocumentServer.Web.DocumentViewer.SaveDocument event.

Save(FileFormat)

Saves the document in a specific document format.

[C#]
public void Save(DocumentServer.FileFormat format);
[Visual Basic]
Public Sub Save(ByVal format As DocumentServer.FileFormat)
Parameter Description
format

Specifies one of the DocumentServer.FileFormat values.

Save(String)

Saves the document to a specific path.

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

Specifies where the document should be saved.

Save(String, FileFormat)

Saves the document to a specific path in a specific document format.

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

Specifies where the document should be saved.

format

Specifies one of the DocumentServer.FileFormat values.

Remarks

A given path is always relating to the server the document viewer is runnig on. Thus, it is good practice to define the path parameter using the HttpServerUtility.MapPath() method.

See Also