TX Text Control 16.0: A deeper look at table headers

ckrause

Well-known member
Joined
Oct 9, 2009
Messages
87
Programming Experience
5-10
Tables are used to arrange large amounts of tabular data, for example in a sales report. As the maximum length of a table on a page can only be the maximum height of the page (minus margins and headers and footers), it is necessary to divide the table every time a page break occurs.

As of TX Text Control .NET 16.0 (Windows Forms and WPF), n contiguous rows in a table can be automatically added to the top of each table, right after a page break has occurred. This new feature ensures that tables always have a table header on every page, regardless of how long they may become.

And there are no limits: The cells of these table header rows can contain more document elements than just text such as other nested tables, images or text frames. This enables you to create professional reports in a very easy way. The following screenshot illustrates how the first row of the table is being repeated at the top of each successive page:

table_headers_screenshot.png


The TableRow class has been extended with the IsHeader property that gets or sets a value specifying whether the table row is part of the table's header or not.

VB.NET:
// C#
public bool IsHeader { get; set; }

// Visual Basic
Public Property IsHeader() As Boolean

This property can be also adjusted in the shipped table attribute dialog using a new checkbox:

table_headers_dialog.png


You want to test it on your own? Feel free to download the fully featured 60 day trial versions here:

TX Text Control Trial Versions


About TX Text Control:

TX Text Control was originally released in 1991, since then more than 40,000 copies have been sold. Starting off as a single, small DLL, TX Text Control has made its way through 16-bit DLL and VBX versions to today‘s Enterprise edition with its .NET and ActiveX components. The recent addition to the family, TX Text Control .NET Server, offers all of TX Text Control advanced word processing functionality in an easy-to-use server-side .NET component. Customers benefit from these years of experience, large user base, and at the same time, appreciate developing with a mature, reliable product.

Contact Informations:

support@textcontrol.com

North & South America:
Phone: +1 704-370-0110
Phone: +1 877-462-4772 (toll free)

Europe:
Phone: +49 (0)421 42 70 67 10

Asia Pacific:
Phone: +886 2-2797-8508
 
Back
Top