New Features and Update Notes
TX Text Control 14.0 provides several new features described in the following table.
64 Bit Edition
TX Text Control is available as a 64 bit edition. All kernel and filter DLL files have been extended to support 64 bit memory addresses. The names of the DLL files are the same for 32 bit and 64 bit. The TX Text Control class library is platform independent.
A document can be split into several sections to enable different page sizes and margins and different headers and footers in the same document. An end-user can use the new Page Setup dialog box available through the TextControl.SectionFormatDialog method. All section attributes and headers and footers can be set either for a single section or for the complete document. A SectionCollection available through the TextControl.Sections property enables a programmer to alter the formatting attributes of a section from programming code. The sections of a document are numbered beginning with 1. The StatusBar has been extended to show the section number at the text input position. Additionally, it shows the number of pages and the number of sections contained in the document.
TX Text Control supports the WordprocessingML part of the Microsoft Office Open XML format. This format is a ZIP compressed XML format for word processing and is used as standard format of Microsoft Word. A TextControl can load and save files (.docx extension) and blocks of memory containing documents formatted with this format. The StreamType and BinaryStreamType enumerations have been extended with the WordprocessingML member thus this format can be loaded and saved with the TextControl.Load and TextControl.Save methods.
A MailMerge component has been added that can be used to effortlessly merge template documents with database content in .NET projects, such as ASP.NET web applications, web services or Windows services. The MailMerge component uses a ServerTextControl and fields of the type ApplicationField to merge the database content and a document template. The set of merged documents can be saved in each format available through the StreamType enumeration, either as single documents or as one document.
Import and Export of Heiler HighEdit Fields
TX Text Control also supports the import and export of Heiler HighEdit fields contained in RTF documents. The names of these fields are available through the ApplicationField class using the ApplicationFieldFormat.HighEdit format.
Because a document can have pages with different sizes a PageCollection informs about the alignment of the page and the page's text contents. Furthermore, a Page object has properties to inform about its character index, number of characters, section number and the number of the page in the section. The PageCollection is available through the TextControl.GetPages method.
For better support when merging documents, the TextControl.Append and ServerTextControl.Append methods have been added. These sets of methods load text in a certain format from a file, a byte array or a string and append it to the existing document. It can be specified that the document is appended at the end of the existing document or if a new paragraph or section is created for the appended document.
A printer for which the document is formatted can be specified with the TextControl.FormattingPrinter property. If the document is printed with this printer the displayed and the printed document have the same dimensions. The formatting device can also be the display device.
Additional contents such as images or watermarks can be printed on a page of a document. An application can add its own PrintPageEventHandler to a PrintDocument. If this handler performs some output the contents of a TextControl or ServerTextControl are printed transparently on top of this output.