agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Vincenzo Campanella <vinz65@gmail.com>
To: Vincent Veyron <vv.lists@wanadoo.fr>
To: avpro avpro <avprowebeden@gmail.com>
Cc: pgsql-novice@postgresql.org
Cc: pgsql-sql@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: Re: [SQL] Re: Link Office Word form document with data from PostgreSQL
Date: Mon, 30 Mar 2015 17:37:28 +0200
Message-ID: <55196DB8.6090501@gmail.com> (raw)
In-Reply-To: <20150330150121.39fc80c1614692b758a6aae3@wanadoo.fr>
References: <CAAQdDn=JssA0S5WX2_x-Gvh9LxkH87zBLDB5Vox1Tark4CFv5Q@mail.gmail.com>
<20150330150121.39fc80c1614692b758a6aae3@wanadoo.fr>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>
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 are unlikely 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
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
view thread (11+ messages) latest in thread
Message-ID: <55196DB8.6090501@gmail.com>
Permalink: ../55196DB8.6090501@gmail.com/
Also on: postgresql.org/message-id/55196DB8.6090501@gmail.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: vinz65@gmail.com, vv.lists@wanadoo.fr, avprowebeden@gmail.com, pgsql-novice@postgresql.org, pgsql-general@postgresql.org
Subject: Re: [SQL] Re: Link Office Word form document with data from PostgreSQL
In-Reply-To: <55196DB8.6090501@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox