"After my talk about ODF scripting at OOoCon 2010 I got by
another OOoCon speaker, Rony G. Flatscher another script for
automatic generation of OpenDocument invoices, or any other ODF
text with a fixed structure. Roni's script opens an OpenDocument
text template as the one shown in the left picture below and
replaces all the MF_ placeholders strings with values loaded by a
plain text file, creating the filled form shown in the right
picture:
"This is the format of the plain text file containing the data
that must be inserted in the form (of course, you could either
generate this entry file manually, but the real advantage of doing
things this way is when the data come from some database,
spreadsheet or other similar source:"