Printing a TTable or TQuery

Top  Previous  Next

The code for this example is located in the “FastReport’s Demos\PrintTable” (“FastReport Demos\BCB Demos\PrintTable”) folder. The principles are the same as for the example of printing a TStringGrid. In this case, the row index is its sequence number, the column index is the name of a table field and the cell value is the table's field value. It is important to note that the functions for cell elements must be disabled in the “Cross-tab” object editor (since cells can contain data of various types, which leads to an error during table creation) and the table title sorting must also be disabled (otherwise the columns will be sorted alphabetically).