Report is a [tcllib] command for report generation. Documentation can be found at http://tcllib.sourceforge.net/doc/report.html ---- [Nagu: 2013-03-30]: I've updated the source code of reportx framework at: http://nagarajanchinnasamy.blogspot.in/2013/03/reportx-source-code.html%|%::reportx - Source Code%|%. This updated version handles nested tables. I've also posted a simple example of creating nested tables at: http://nagarajanchinnasamy.blogspot.in/2013/03/nested-tables-using-reportx.html%|%Nested tables using reportx%|%. Please review and let me know if you have any comments/questions. Thanks. ---- [Nagu: 2013-03-22]: On my Tcl blog at: http://nagarajanchinnasamy.blogspot.in/2013/03/reportx-tcl-framework-to-generate.html%|%::reportx - Tcl Framework To Generate Tabular Reports%|%, I have posted the details of a simple wrapper framework that simplifies the usage of ::report package in generating tabular reports. Please review and let me know if you have any comments/questions. Thanks. ---- Has anyone done anything ''simple'' with this command? I'm having problems figuring where to start. [How to wrap cell contents when using tcllib struct::matrix and report ] ---- ====== package require csv package require report package require struct ... open a channel to a a CSV file, with default separator (comma) struct::matrix::matrix m # The following code extracts the number of columns from the file # and initializes the matrix to that number of columns. if {[gets $channel line] < 0} { # here, you either continue, return with an error, or take some other action for when the file being read is empty } set data [::csv::split $line $sepChar] m add columns [llength $data] m add row $data csv::read2matrix $channel m report::report r [m columns] ; # (*) r printmatrix2channel m stdout ====== This should print the CSV file to stdout, auto-formatted so that each column is wide enough to hold the longest value of that column. No visual frills like header, footer or column separators. ---- For output as HTML table add ====== ::report::defstyle html {} { set c [columns] set cl $c ; incr cl -1 data set "