TX Text Control .NET Server

FormData Property

Property|Introduced in 15.0
Namespace
TXTextControl.DocumentServer.Web
Type
TXTextControl.DocumentServer.Web.DocumentViewer.SaveFormDataEventArgs
Package
TXTextControl.TextControl.ASP.SDK as TXDocumentServer.Web.DocumentViewer.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets a snapshot of the currently loaded form's user input.

Syntax

public DataTable FormData { get; }

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;

Limitations

Read only.

Remarks

The DataTable object allows for a variety of different ways of processing the contained data. For instance, exporting the form data as xml string is as simple as calling the DataTable.WriteXml() method.