Example - Creating a Table Report

Table reports display 1-dimensional, not hierarchical data in tabular form. Typically, the data that is used to merge a table report is stored in a single DataTable. Typically, this concept is used to present product lists, check lists or inventory items in a flat table form.

This example is part the Sample Explorer project which includes all samples in one. The sources for this sample project can be found here:

Language Project Location
C# %USERPROFILE%\Documents\TX Text Control 24.0.NET Server for ASP.NET\Samples\ASP.NET\CSharp\Sample Explorer\
VB.NET %USERPROFILE%\Documents\TX Text Control 24.0.NET Server for ASP.NET\Samples\ASP.NET\VB.NET\Sample Explorer\

You will find the source code and the ASPX page of this sample in the Solution structure tree under: Reporting\table.aspx

Example description

The data source in this sample is the same sample database that is used in the tutorial. The used template consists of a table that is part of a merge block. This block is repeated based on the number of data rows. The table itself contains two data rows with the same merge fields and a NEXT field at the end. With this setup, alternating table row colors are enabled.

Uncheck some of the listed company names in the GridView control and click Create table report to start the merge process. Only the selected company names are added to the resulting table report which is returned as a PDF file.