It's easy to create template but how to know where I have to insert data ... Obviously you will also need OpenOffice or LibreOffice Calc. On Debian systems it is available as libreoffice-calc package.
JODConverter automates document conversions using LibreOffice or Apache OpenOffice.