This report demo uses a custom reporting template to 
summarize "Accounting Foobulations". 

Files:
  monthly.grd  Basic monthly report with parameter and triggers
  docbook.grd  A report which directly produce docbook output. Don't
               use filter settings with this report.
  pg_schema.sql The database schema for both reports (in Postgresql SQL)

  monthly_i18n_zh.grd The monthly report translated to chinese.
  pg_schema_i18n_zh.sql Additional i18n data

Monthly.grd
===========

First install the schema:
  psql <dbname> < pg_schema.sql
 
To run: 
  grcvs monthly.grd subtitle="April 2002" startdate="04/01/2002" enddate="04/30/2002"

You can try different filter settings (like html, pdf, csv, text):
  grcvs --filter html -d test.html monthly.grd subtitle="April 2002" startdate="04/01/2002" enddate="04/30/2002"

You can even print it directly to a printer (or email or fax it):
  grcvs --filter pdf -D printer -d <printer name> monthly.grd subtitle="April 2002" startdate="04/01/2002" enddate="04/30/2002"

i18n
====

To test the i18n version you have to set the textEncoding setting (in gnue.conf)
to utf-8. For correct PDF file creation you have to edit /src/adapters/filters/SimpleTabulation/tabulator/formatters/pdf.py and set the font and boldfont settings to a font which supports unicode like Zenkai-Medium, Simsun, ArialUnicode etc.

docbook.grd
===========

To run:
  grcvs -d monthly_foo.xml docbook.grd subtitle="April 2002" startdate="04/01/2002" enddate="04/30/2002"

Now you can transform the docbook file to pdf, ps, ... with the xmlto commands.
[this is broken at the moment as we don't produce 100% conformant docbook]

xmlto pdf monthly_foo.xml > monthly_foo.pdf

Attention: We create XML docbook here, so the db2xxx commands (for SGML db) don't work!!!


