comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <bauhaus@futureapps.de>
Subject: Re: Prettty printed reports in MSWindows
Date: Sat, 3 May 2003 16:35:58 +0000 (UTC)
Date: 2003-05-03T16:35:58+00:00	[thread overview]
Message-ID: <b90r5e$gd4$1@a1-hrz.uni-duisburg.de> (raw)
In-Reply-To: 3EB1A07A.6050108@dontspam.net

Mark <no_no@dontspam.net> wrote:
: I am currently trying to figure out a good way to print some 
: formatted business reports.

We do that every day (though unfortunately only rarely with the help
of Ada programs).
Things to look at should, I think, include employing
XSL style sheets and XSL transformations, together with a formatting
backend.  (Or DSSSL, precursor to XSL(T).)
You produce a marked up data stream using some XML tags as markup,
and employ a style sheet producing high quality portable, printable
material.
(Several transformers and backends are available, some of them Free
Software, some of them proprietory sofware.)

You can do number formatting using Ada's COBOL facilities, or, to
an acceeptable extent, XSLT number formats, or both Editing and XSL.

Setting up a pipe to a DSSSL program might be an option too.
A well known program suite, Jade, can produce various output
formats, including RTF, TeX, HTML, and MIF.

In producing XML streams, AWS's template mechanism can help, but
you could as well extends your types with a suitable To_XML function,
and possibly combine the two.
If your reports will have mainly data set like items, that is, a sequence
of flat containers so to speak, producing XML data from them should be
straightforward. Otherwise, since XML documents are trees, you might
have to build adapters or some such.

If you are familiar with TeX, which according to Knuth (2000) was
conceived as a backend, you can again use AWS's templates to produce TeX
input; however, page breaking and the presence of inserts (footnotes,
running heads) and absolute positioning might cause some headaches. For
two years or so I have received invoices from a provider that were
automatically produced in that fashion. The results are comparatively
impressive (for invoices), due to the excellent paragraph breaking that
TeX does, hard to beat in particular using good fonts.

HTH, Georg

 

----------------------------------------------------------------
Georg Bauhaus                              bauhaus@futureapps.de
Future Apps GmbH                        http://www.futureapps.de
phone: +49 203 306 1560




      parent reply	other threads:[~2003-05-03 16:35 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-01 22:32 Prettty printed reports in MSWindows Mark
2003-05-02  1:14 ` tmoran
2003-05-02 13:30   ` Mark
2003-05-03 14:52     ` Marin David Condic
2003-05-02 14:08 ` Fionn mac Cuimhaill
2003-05-02 16:58   ` Pascal Obry
2003-05-02 19:31   ` Randy Brukardt
2003-05-02 14:31 ` David Botton
2003-05-02 16:06   ` Mark
2003-05-02 16:57   ` Pascal Obry
2003-05-02 20:29   ` tmoran
2003-05-03  8:25 ` Michal Morawski
2003-05-03 16:35 ` Georg Bauhaus [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox