FileFormat Enumeration
- Namespace
TXTextControl.DocumentServer
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXDocumentServer.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXDocumentServer.from the setup.dll
Description
Determines a certain text format. These formats can be used to load templates containing text fields of type ApplicationField. The enumeration contains the following values:
Syntax
public enum FileFormatPublic Enum FileFormatMembers
| Member | Value | Description |
|---|---|---|
| MSWord | 0 | Specifies Microsoft Word format. |
| RichTextFormat | 1 | Specifies RTF format (Rich Text Format). |
| WordprocessingML | 2 | Specifies Microsoft Office Open XML format. |
| InternalUnicodeFormat | 3 | Specifies the internal TX Text Control format. Text is stored in Unicode format. |
Examples
The following example selects the MSWord value from the File Format enumeration and uses it as a documented workflow choice.
TXTextControl.DocumentServer.FileFormat value = TXTextControl.DocumentServer.FileFormat.MSWord;
Console.WriteLine($"Using File Format: {value}");Dim value As TXTextControl.DocumentServer.FileFormat = TXTextControl.DocumentServer.FileFormat.MSWord
Console.WriteLine($"Using File Format: {value}")Further Reading
- MailMerge: Creating Separate Documents from Multiple Data Records –
- New Sample: Creating Reports with Nested Repeating Blocks –
- MailMerge: Using IncludeText Fields to Inject Formatted Text –
- MS Word Compatible Mail Merge Using TX Text Control Server for ASP.NET (incl. Windows Forms) –