File: README

package info (click to toggle)
libgda5 5.2.10-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 76,168 kB
  • sloc: ansic: 495,319; xml: 10,486; yacc: 5,165; sh: 4,451; makefile: 4,095; php: 1,416; java: 1,300; javascript: 1,298; python: 896; sql: 879; perl: 116
file content (49 lines) | stat: -rw-r--r-- 1,855 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Libgda Report engine example
============================

Description:
------------

The examples in this directory illustrate the GDA report engine, in the libgda-report component,
part of libgda as of versions >= 4.0.

In these examples the 'SalesTest' (this data source needs to be defined,
which is automatically done when the first Libgda application is run, and uses a small SQLite database)
is used as the source of data to generate a report.

The first example (customers-report.c) takes the "customers-report-spec.xml" XML file which
is a DocBook template (with some <gda_report_...> tags, creates a GdaReportEngine object to "execute" it 
and creates the "customers-report.xml" file (which returns a valid DocBook document).

The second example (customers-report-rml.c) creates a GdaReportRmlDocument object which offers
a higher level than the GdaReportEngine to work on RML files. It loads the "customers-report-rml.rml"
RML file, and generates a PDF file from it.

The 3rd example (schema-report.c) takes the "schema-report-spec.xml" XML file and created the "schema-report.xml"
file (a valid DocBook document) which lists all the database schemas, the tables and views in the default schema
along with their properties.

Compiling and running:
----------------------

To compile (make sure Libgda is installed prior to this):
> make

and to run:
> ./customers-report

result is in the customers-report.xml file, which can be converted to HTML (in a customers-report.html file) as:
> make html
(make sure you set the correct path to the stylesheet in the Makefile)
> firefox customers-report.html


or, for the second example:
> ./customers-report-rml
> evince customers-report-rml.pdf

and for the 3rd:
> ./schema-report
> make schema-html
(make sure you set the correct path to the stylesheet in the Makefile)
> firefox schema-report.html