TX Text Control .NET for Windows Forms

What's New in TX Text Control .NET for Windows Forms 14.0

Topic

Version 14.0 is where several parts of today's TX Text Control .NET for Windows Forms began: document sections with their own Page Setup dialog box, the DOCX format, MS Word fields as ApplicationField objects and the MailMerge class. It also appended documents to each other, described the pages of a document and ran on 64-bit systems.

Version 14.0 was released in January 2008 for the server and the client products, as the press release Press Release: TX Text Control 14.0 is Released announced.

Version 14.0 at a Glance

AreaWhat is new
PlatformA 64-bit edition
SectionsPage size, margins and headers and footers per section, a Page Setup dialog box, sections in the status bar
DOCXLoading and saving the WordprocessingML format
FieldsMS Word fields and Heiler HighEdit fields as ApplicationField objects
Mail mergeThe DocumentServer.MailMerge class
Documents and pagesAppending documents, page coordinates, a formatting printer, background printing

Platform

TX Text Control is available as a 64-bit edition. All kernel and filter DLLs support 64-bit memory addresses and have the same file names in both editions, and the class library is platform independent. 32-bit and 64-bit Applications describes the platforms of the current version.

Sections and Headers and Footers

Sections and Page Layout and Headers and Footers describe them in the current version.

DOCX and Fields

Mail Merge

The DocumentServer.MailMerge class merges templates with data in .NET projects such as ASP.NET web applications, web services and Windows services. It uses a ServerTextControl, set with TextComponent, and fields of the type ApplicationField.

MailMerge introduces the class as it is today.

Documents and Pages

  • Append documents. TextControl.Append loads a document from a file, a byte array or a string and appends it to the end of the current document, optionally as a new paragraph or a new section. ServerTextControl has the same method.
  • Page coordinates. TextControl.GetPages returns a PageCollection. Because pages can have different sizes, each Page gives its Bounds and TextBounds, its first character and number of characters, its section and its NumberInSection. See Sections, Pages, Headers, and Footers.
  • Formatting printer. TextControl.FormattingPrinter names the printer the document is formatted for, so that the displayed and the printed document have the same dimensions. The formatting device can also be the display.
  • Background printing. An application can add its own PrintPageEventHandler to a PrintDocument to print images or watermarks on a page. The content of a TextControl or ServerTextControl is then printed transparently on top. See Printing and Print Preview.
  • Page background. TextControl.BackgroundStyle defines how the page background is shown in page view.

Upgrade to Version 14.0

New Classes, Properties, Methods and Events

The classes and members below are the ones that the What's New documentation of version 14.0 lists for TX Text Control .NET for Windows Forms. Names are relative to the TXTextControl namespace, each name links to its current reference page, and "(obsolete)" marks a member that is obsolete today.

New Classes

Members by Class

ClassPropertiesMethodsEvents
ApplicationFieldFormat, Parameters, TypeName
ApplicationFieldCollectionAdd, Clear, CopyTo, GetItem, Remove
DocumentServer.MailMergeRemoveEmptyFields, TextComponent, UseTemplateFormatLoadTemplate, LoadTemplateFromMemory, Merge, MergeBlocks (obsolete), Print, SaveDocument, SaveDocumentToMemoryBlockRowMerged, DataRowMerged
DocumentServer.MailMerge.BlockRowMergedEventArgsDataRowNumber, MergedBlockRow
DocumentServer.MailMerge.DataRowMergedEventArgsDataRowNumber
HeaderFooterApplicationFields, ConnectedToPrevious, SectionNumber
InputPositionPageInSection, Section
LinePage
LoadSettingsApplicationFieldFormat, ApplicationFieldTypeNames
PageBounds, Length, Number, NumberInSection, Section, Start, TextBoundsSelect
PageCollectionCount, ItemCopyTo, GetEnumerator, GetItem
SectionFormat, HeadersAndFooters, Length, Number, StartSelect
SectionCollectionCount, ItemAdd, CopyTo, GetEnumerator, GetItem
SectionFormatBreakKind, Landscape, PageMargins, PageSize
SelectionSectionFormat
ServerTextControlApplicationFields, FormattingPrinter, Landscape, SectionsAppend, GetPages
StatusBarPageCounterText, SectionCounterText, SectionText, ShowColumn, ShowKeyStates, ShowLine, ShowPage, ShowPageCounter, ShowSection, ShowSectionCounter, ShowZoom
TextControlApplicationFields, BackgroundStyle, FormattingPrinter, HeaderFooterActivationStyle, HeaderFooterFrameStyle, Landscape, SectionsAppend, GetPages, OnPageChanged, OnSectionChanged, SectionFormatDialogPageChanged, SectionChanged
TextFrameApplicationFields

Next Steps