LoadFromMemory Method
- Namespace
TXTextControl.DocumentServer
- Package
TXTextControl.asTextControl. ASP. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
Description
Loads a document from memory that is used for further processing.
Syntax
public void LoadFromMemory(object template, FileFormat documentFormat);Public Sub LoadFromMemory(template As Object, documentFormat As FileFormat)Parameters
| Parameter | Description |
|---|---|
| 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.");documentController.LoadFromMemory("Approved", TXTextControl.DocumentServer.FileFormat.MSWord)
Console.WriteLine("Document Controller is ready for use.")