TX Text Control .NET for WPF

LoadFromMemory Method

Method|Introduced in 15.0
Namespace
TXTextControl.DocumentServer
Package
TXTextControl.TextControl.WPF.SDK as TXDocumentServer.dll from the private NuGet feed or Text Control Offline Packages

Description

Loads a document from memory that is used for further processing.

Syntax

public void LoadFromMemory(object template, FileFormat documentFormat);

Parameters

ParameterDescription
template

Specifies a document memory variable from which the data is loaded.

documentFormat

Specifies one of the DocumentServer.FileFormat values.

Return Value

Returns true, if the document was loaded successfully and false, if the document is invalid or could not be loaded properly.

Examples

The following example uses Load From Memory in a focused Document Controller workflow. The created object is then available to the surrounding document workflow.

documentController.LoadFromMemory("Approved", TXTextControl.DocumentServer.FileFormat.MSWord);
Console.WriteLine("Document Controller is ready for use.");