SaveDocumentEventArgs Class
- Namespace
TXTextControl.DocumentServer. Web
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. ASP. SDK
- Assembly
TXDocumentServer.Web. DocumentViewer. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. ASP. SDK TXDocumentServer.from the setup.Web. DocumentViewer. dll
- Inherits
- Event
Args - Document
Viewer. Save Document Event Args
- Event
Description
The SaveDocumentEventArgs class provides data for the DocumentViewer.SaveDocument event.
Syntax
public class DocumentViewer.SaveDocumentEventArgs : EventArgsPublic Class DocumentViewer.SaveDocumentEventArgs
Inherits EventArgsExamples
The legacy Web Forms document viewer type is not part of the current ASP.NET Core package. The following example uses the current MVC Document Viewer model for the same server-side workflow.
TXTextControl.Web.MVC.DocumentViewer.DocumentLoadSettings documentLoadSettings = new();
documentLoadSettings.LoadEmbeddedComments = true;Dim documentLoadSettings As New TXTextControl.Web.MVC.DocumentViewer.DocumentLoadSettings()
documentLoadSettings.LoadEmbeddedComments = TrueMembers
Constructors
| Constructor | Description |
|---|---|
| SaveDocumentEventArgs | Not described in the reference. public SaveDocumentEventArgs(byte[] document, FileFormat format); |
Properties
| Property | Description |
|---|---|
| Document | Gets a snapshot of the currently loaded document for further processing. |
| FileFormat | Specifies the format of DocumentViewer.SaveDocumentEventArgs.Document. |