Hi,
Hi Guys,
first of all, thanks for releasing jopendocument, that's exactly what
I was looking for - some lightweight library for working with Open
Office documents.
But the documentation provided is not very explanatory so I'm posting
some questions here.
Basically, what I need is to generate automatically content of
documents using custom fields. I'm trying to reproduce the example
which is here: http://www.jopendocument.org/start_text_2.html
But can't get it to work. I can run the code, but no changes are made
to fields in my test file.
1) Can you give me a short hint, how to create input text fields in
Open Office, so I can access them and edit easily with jopendocument?
You have to insert a field, look at the OpenOffice Addon. It's a plugin
for OO aimed to help you on this task.
2) Would be nice, if you put on the website Open Documents used in the
examples as well.
They are available for downloads too, it seems that you found it.
3) Is there any way how to iterate over all input fields in a
document?
Parts of documents can be repeated, in such case, you can use Lists or
Maps to fill them.
We do not provide a direct way to access to the inputs fiels, the fields
have to 'know' how they should retreive the associated data.
(Using Java or any script langage)
Regards,
Guillaume