Re: [SQL] Re: [GENERAL] Link Office Word form document with data from PostgreSQL - Mailing list pgsql-novice

From Vincenzo Campanella
Subject Re: [SQL] Re: [GENERAL] Link Office Word form document with data from PostgreSQL
Date
Msg-id 55196DB8.6090501@gmail.com
Whole thread Raw
In response to Re: [GENERAL] Link Office Word form document with data from PostgreSQL  (Vincent Veyron <vv.lists@wanadoo.fr>)
Responses Re: [SQL] Re: [GENERAL] Link Office Word form document with data from PostgreSQL  (Vincent Veyron <vv.lists@wanadoo.fr>)
List pgsql-novice
Il 30.03.2015 15:01, Vincent Veyron ha scritto:
> Hi,
>
> I use Perl for this. The process is :
>
> -unzip the .docx document, and look for /word/document.xml in the resulting directory
> -substitute field names with their values in this file (I don't use MS Word 'fields', though, just placeholders that
areunlikely to be found in documents, such as client_name, client_address, facturation_date, etc) 
> -zip the archive anew with a .docx extension
>
> Voilà.
>
> The code is about 40 lines long, I can post it if you care; the same process also works with Libre/OpenOffice
documents
>
Hi Vincent, could you please post the code? That would be very nice.

Thank you
vince


pgsql-novice by date:

Previous
From: Vincent Veyron
Date:
Subject: Re: [GENERAL] Link Office Word form document with data from PostgreSQL
Next
From: Kevin Grittner
Date:
Subject: Re: Optimize a big matrix select