TX Text Control .NET Server

What's New in TX Text Control 19.0

Topic

Barcodes became part of the document in TX Text Control 19.0, next to images, text frames and charts. The version also gave headers and footers separate content for even and odd pages, restarted page numbers per section, and let MailMerge fill barcodes and charts with data.

Version 19.0 was released in April 2013 as TX Text Control X9, together with the new TX Barcode .NET 2.0, as the blog article TX Text Control X9 and TX Barcode .NET Have Been Released announced. Its server products were TX Text Control Server for ASP.NET (incl. Windows Forms) and TX Text Control Server for ASP.NET (incl. WPF). Features of the Windows Forms and WPF controls, such as built-in context menus, permanent control characters, the anchor symbol and new dialog boxes, aren't listed here.

Version 19.0 at a Glance

AreaWhat is new
Headers and footersDifferent headers and footers for even and odd pages
BarcodesBarcode frames in the text, positioned like images
Page numberingRestarted numbering per section, the total number of pages
MS Word content controlsImported from DOCX as application fields
Mail mergeMerging into barcodes and charts, canceling a merge, new events

Headers and Footers

A document, or a single section, can have different headers and footers for even and odd pages. The methods Add, GetItem and Remove of HeaderFooterCollection accept the HeaderFooterType values EvenHeader and EvenFooter. When an even header or footer exists, a header or footer of the type Header or Footer is the one of the odd pages; otherwise, it is used on all pages. See Headers and Footers.

Barcodes

Barcode controls of the type TXTextControl.Barcode.TXBarcodeControl can be inserted into a document:

  • Position. A barcode is placed like an image or a text frame: as a character in the text, anchored to a paragraph or at a fixed position in the document. A DataVisualization.BarcodeFrame positions it and is connected to the barcode control, which holds the appearance and the data.
  • Collection. ServerTextControl.Barcodes returns a DataVisualization.BarcodeCollection, which adds and removes barcodes. The events BarcodeCreated and BarcodeDeleted report changes.
  • Formats. The TX Text Control format and RTF save a barcode as a barcode, which is rebuilt when the document is loaded. Other formats save its image. On a system without the barcode controls, the image is inserted instead.

Charts and Barcodes shows how barcodes are used in the current version.

Page Numbering

MS Word Content Controls

When a DOCX document is loaded, its MS Word content controls are converted to fields of the type ApplicationField. Version 21.0 added adapter classes for them; Content Controls describes them today.

Mail Merge

Upgrade to Version 19.0

  • HeaderFooterType. The methods of HeaderFooterCollection accept the new values EvenHeader and EvenFooter. Code that handles all values of HeaderFooterType has to handle these as well.

New Classes, Properties, Methods and Events

The classes and members below are the ones that the What's New documentation of version 19.0 lists for TX Text Control .NET Server. Names are relative to the TXTextControl namespace, each name links to its current reference page, and "(obsolete)" marks a member that is obsolete today. The version's own list also names the event ShapeDeleted of Drawing.TXDrawingCore, a class that the reference dates to version 33.0; it is left out here. The list also names PageNumberField as a new class, but PageNumberFieldCollection already took PageNumberField objects in version 13.0, so it isn't listed under New Classes.

New Classes

Members by Class

Next Steps