TX Text Control .NET Server

SaveDocumentEventArgs Class

Class|Introduced in 15.0
Namespace
TXTextControl.DocumentServer.Web
Package
TXTextControl.TextControl.ASP.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXDocumentServer.Web.DocumentViewer.dll
Install
dotnet add package TXTextControl.TextControl.ASP.SDK .NET 8 and later. For .NET Framework, reference TXDocumentServer.Web.DocumentViewer.dll from the setup.
Inherits
  1. EventArgs
  2. DocumentViewer.SaveDocumentEventArgs

Description

The SaveDocumentEventArgs class provides data for the DocumentViewer.SaveDocument event.

Syntax

public class DocumentViewer.SaveDocumentEventArgs : EventArgs

Examples

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;

Members

Constructors

ConstructorDescription
SaveDocumentEventArgsNot described in the reference. public SaveDocumentEventArgs(byte[] document, FileFormat format);

Properties

PropertyDescription
DocumentGets a snapshot of the currently loaded document for further processing.
FileFormatSpecifies the format of DocumentViewer.SaveDocumentEventArgs.Document.