Printing TTable and TQuery
The initial example’s code is located in the «FastReport’s Demos\PrintTable» ( «FastReport Demos\BCB Demos\PrintTable»") directory. The principle of work is the same, as in the example with the TStringGrid
. In this case, the row’s index is its sequence number, the column’s index is the name of a table field, and the cell’s value is the table field’s value. It is important to notice that the functions for cell’s elements must be disabled in the «Cross-tab» object editor (since in a cell there are data of various kinds, this leads to the error in table creation) and the table title’s sorting must be disabled too (otherwise columns will be sorted alphabetically).