View Full Version : How to print TreeTableModel

05-14-2002, 07:42 PM
Right now using JFreeReport we are able to print or create reports from TableModel. Is this capable of printing from TreeTableModel.


05-14-2002, 08:14 PM
JFreeReport is currently only capable of printing from flat tables. You have to create a TableModel from your TreeModel.

But if you form your model so that the leafs of your tree are displayed in one column and the nodes are stored in you model the way that all top-level odes are collected in a column, the 2nd level node in the next and so on, then you should be able to use JFreeReport's grouping feature to display your flattened tree in JFreeReport.

Have more fun,
said Thomas