New Features and Update Notes

TX Text Control 14.0 provides several new features described in the following table.

New Features

Feature Description
Section Formatting 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 SectionFormatDialog method. All section attributes and headers and footers can be set either for a single section or for the complete document. The SectionCurrent property has been implemented to specify a part of the document when the attributes of a section are to be altered from programming code. This property can be used in conjunction with the PageWidth, PageHeight, PageMarginL, PageMarginT, PageMarginR, and PageMarginB properties. The TXStatusBar control 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.
Headers and Footers The contents and the alignment of headers and footers can be different for each section. Also each section can have a special header and a special footer for the section's first page. If a section does not need its own header or footer, its header or footer can be connected with the header or footer of the previous section. The HeaderFooterConnectedToPrevious property implements this feature. The SectionCurrent property in conjunction with all Headerxxx properties an methods can be used to alter headers and footers for a single section or the current input section.
WordprocessingML Format 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 Format parameter of the Load and Save methods accept a new value to load and save this format.
Import and Export of Microsoft Word Fields TX Text Control now supports the import and export of Microsoft Word fields contained in Microsoft Word and RTF documents. The arguments and switches of these fields are available through the FieldTypeData property, if the field is of the type txFieldMSWord. This field type only provides an interface to retrieve and change the data and parameters of such fields. The field logic itself is not implemented. Before loading a document, the txLoadMSWordFields attribute of the LoadSaveAttributes property must be set to true. The txMSWordFieldTypeNames attribute can be used to select particular types of fields. The FieldNext method has been expanded to enable iteration through all such fields in the 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 FieldTypeData property, if the field is of the type txFieldHighEdit. Before loading a document, the txLoadHighEditFields attribute of the LoadSaveAttribute property must be set to true. The FieldNext method has been expanded to enable iteration through all such fields in the document.
Background Printing Additional contents such as images or watermarks can be printed on a page of a document. A TXTextControl control prints transparently on top of some output that has been added through an application before the PrintPage method is called.

Update Notes

Feature Update Note
HeaderFooterSelect Method In previous versions of TX Text Control, it was possible (although not in accordance with the manual) to deselect a header or footer using txMain as a parameter. This was invalid before, but did not cause an error. In version 14, error handling has been improved, so that now a value of 0 (automatic mode) must be used to deselect a header or footer.
HeaderFooterSelect Method In previous versions of TX Text Control, it was also possible to select a footer while a header was selected. In version 14 a header or footer can only be selected when in Automatic Mode. Please refer to the technical article Programming Headers and Footers for further details.
Sections and Page Settings Before version 14, properties like PageHeight and PageWidth always applied to an entire document. In version 14, each section of a document can have its own page settings. When using one of the page related properties without previously selecting a section, please keep in mind that all sections are affected.
Page Orientation, Portrait vs. Landscape The following incompatibility can occur when using TX Text Control's internal format. Other formats, including DOC, RTF and HTML are not affected. In previous versions of TX Text Control, Landscape orientation was simulated by simply exchanging a document's widht and height. The new Landscape mode of Version 14 will not recognize this simulated landscape mode, but will display a document that was formatted this way as having portrait orientation.