> On Tuesday, July 25, 2017 at 12:07:35 AM UTC+5:30, Robert wrote:
>> Perl comes with "perlform":
http://perldoc.perl.org/perlform.html
>>
>> From the description: Perl has a mechanism to help you generate
simple reports and charts. To facilitate this, Perl helps you code up
your output page close to how it will look when it's printed. It can
keep track of things like how many lines are on a page, what page you're
on, when to print page headers, etc. Keywords are borrowed from FORTRAN:
format() to declare and write() to execute; see their entries in
perlfunc. Fortunately, the layout is much more legible, more like
BASIC's PRINT USING statement. Think of it as a poor man's nroff(1).
>>
>> Does Tcl have something similar to this?
>>
On 07/25/2017 07:13 AM,
pal...@yahoo.com wrote:
> Well, there is the report module in tcllib which may or may not meet your needs. It is slightly awkard to use as it depends on data being structured using the struct::matrix package, also from tcllib.
>
> Alternatively, there is the simpler, but a little less functional, tabulate package at
http://wiki.tcl.tk/41682 which may also suffice.
Generally, for "simple" reports I find most people want a spreadsheet --
so I use the csv package from TclLib to produce one.
The rare times when someone wants something more, I either use the
technique you suggest with a Canvas or the PDF direct package.
For really fancy reporting, there is always output to LaTex.
--
+----------------------------------------------------------------------+
| Gerald W. Lester, President, KNG Consulting LLC |
| Email:
Gerald...@kng-consulting.net |
+----------------------------------------------------------------------+