Is there any example of the ODT templates and of the XML datasource?

558 views
Skip to first unread message

alexbottoni

unread,
Nov 21, 2011, 11:05:39 AM11/21/11
to jodreports-users
I'm looking for some example of the ODT (ODF) template documents /and/
of the XML data files used with JODreports. I mean: something I can
use both as a base for a quick test and as a starting point for my own
application of JODReports.

Any pointer?

Thanks

SHERVIN ASGARI

unread,
Nov 24, 2011, 3:46:22 AM11/24/11
to jodrepor...@googlegroups.com
Hi

Take a look inside the source for JODReports. In src/test/resources there are many example documents you can look at.

Shervin

alexbottoni

unread,
Nov 30, 2011, 11:33:41 AM11/30/11
to jodreports-users
On 24 Nov, 09:46, SHERVIN ASGARI <shervin.asg...@gmail.com> wrote:
> Take a look inside the source for JODReports. In src/test/resources there are many example documents you can look at.

Thanks Shervin.

I'm now trying to generate a order document using the ODT and XML
sample files that I found in this directory (src/test/resources).
Unfortunately, every time I just get a almost empty (and useless)
document.

For example, this command line:

$ java -jar generate.jar my-table-template.odt order-data.xml order-
output.odt

gives me a ODT document that contains a table composed by just the
header row while the body of the table just disappears. Even the
original body rows and the original tags are deleted.

I tried with the other ODT templates and the other XML data files
supplied with the sources but I have got the same result. Just the
most basic pair of sample documents "my-template.odt" and "simple-
data.xml" gives me the expected result.

Any idea?

PS: generate.jar is just a link to jodreports-cli-2.4.0-jar-with-
dependencies.jar, of course.

PS2: I'm using a Linux Mint 12 with OpenJDK6.

Reply all
Reply to author
Forward
0 new messages