| TListPrinter - DBGridPrinter demo |
Demo of TDBGridPrinter linked to a TDBGrid and table PARTS.DB or table ORDERS.DB.

WYSIWYG preview (and printout) of table PARTS.DB

Use the demo source code as starting item for your own application.
Your application need to have a TDBGrid or a descendant of TDBGrid.
For thirt party DBGrid components see available demos.
![]()
Link any TDBGrid to the TDBGridPrinter and the content of the DBGrid data base will be previewed and printed as table in WYSIWYG.
Features when viewing and printing tables:
| Columns font and alignment are shown WYSIWYG (what you see is what you get). | |
| Predefined layout setting for header line and footer line of the pages | |
| Predefined layout setting for page layout as : | |
| Printing WYSIWYG on / off | |
| Word wrap on / off to fit either all text of a column in flexible row height or force text (maybe cut in length) to fit a uniform row height. | |
| FitPrintToWidth on / off to increase the width of all columns to fit the available page width. | |
| If the width of all columns exceeds the available print width, additional pages are performed for a unlimited number of columns. This Pages are indicated as Page 1 1/1, Page 1 1/2, Page 1 1/3 etc. | |
| The ListPrinter prints the columns in a
width same as given by the Grid-View. If you wont to change the width of the preview and
of the printout, go back to the source view and change the respective column width as
required by dragging the column header with the mouse. If you wont to exclude one or more columns from printout, drag the column to "zero" or deactivate the column. |
![]()
wwDBGridDemo using wwDBGrid from InfoPower. Demo including source code. You need to have been registered for TListPrinter or at least for TDBGridPrinter but also to have the components from InfoPower available, which not are included with the source code (No example available). |
(Ask for sending third party demo application source code via eMail to Info@cosydat.com)
![]()
Last updated:
30.05.2004