Page 1 of 1

Automatic version number in openoffice template to be used on openkm

PostPosted:Tue Feb 03, 2015 1:08 pm
by mountain73
Hi all.

I want to insert in my openoffice template a field that, when used to create a document, will insert automatically version of document as displayed in openkm. Goal is that when I print/update the document, related version is inserted in my document without any effort.
Do you have a tip on how this could be done?
Propriety groups do not seem to solve this problem as it creates an additional property whereas I want to re-use an existing one: the version.
Maybe I am wrong...
Thanks a lot for your help

mountain73

Re: Automatic version number in openoffice template to be used on openkm

PostPosted:Fri Feb 06, 2015 11:11 pm
by jllort
If I understood. You got a document and into the document you got version number into ( document version is 1.0 ).When a user chek-out -> check-in ( update ) the document then you want automatically change the number into ( document version is 1.1 ). Is it ?

We're talking about odt files ( open document format no ? ).

Re: Automatic version number in openoffice template to be used on openkm

PostPosted:Mon Feb 09, 2015 8:38 am
by mountain73
Hi jllort.

You are totally right: if version is update in openkm with check out/ checkin, I would like to have version within the open office template document updated accordingly.
Do you have a solution for this?

Thanks a lot for your help

Regards.

Mountain73

Re: Automatic version number in openoffice template to be used on openkm

PostPosted:Wed Feb 11, 2015 5:03 pm
by jllort
- One solution is water mark.
- Other solution is openkm office working with open documents ( docx ), use some library to navigate into the document looking for version number location and change it. The problem you can find in this scenario is that en user can change font, etc... what will change the xml into ( adding a lot of garbage ) and your initial navigation looking for version number could fail.
- Work like structured documents ( other screen for saving information and doing merge at the end ). Always build the data from structured data ( http://en.wikipedia.org/wiki/Darwin_Inf ... chitecture )

If you know other way for doing it, are also wellcome.