Le 31/03/2013 23:44, rocko a écrit :
> I don't know much about the capabilities of Gambas writing to Libre Office,
> as I don't think I ever heard of it being done before.
>
> I would like to read the names and addresses from an SQLite data base
> and put them into a Libre Office Writer template(.ods).
> Is this possible?
>
>
>
> Using Gambas 3 on Linux Mint 14.
>

I do that for my job.

I first creat a Write document (ods) where I put a special text 
everywhere I want to replace something. For example: $(name), 
$(address), $(town)...

Than I unzip the *.ods file, and modify the 'contents.xml' file by 
replacing the special text by their associated value.

Beware that 'contents.xml' is XML, and so some characters have to be 
quoted: & < > '

Once done, I zip the document back to an ods file. "Et voilà !".

-- 
Benoît Minisini

------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to