Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Ycdqq-0004dC-Jv for pgsql-sql@arkaria.postgresql.org; Mon, 30 Mar 2015 17:51:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Ycdqq-0000qS-36 for pgsql-sql@arkaria.postgresql.org; Mon, 30 Mar 2015 17:51:52 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Ycdqp-0000py-3O for pgsql-sql@postgresql.org; Mon, 30 Mar 2015 17:51:51 +0000 Received: from smtp02.smtpout.orange.fr ([80.12.242.124] helo=smtp.smtpout.orange.fr) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Ycdql-0002L3-BP for pgsql-sql@postgresql.org; Mon, 30 Mar 2015 17:51:49 +0000 Received: from X201.home ([193.251.178.45]) by mwinf5d04 with ME id 9trj1q00Q0z9ZVd03trjhM; Mon, 30 Mar 2015 19:51:44 +0200 X-ME-Helo: X201.home X-ME-Auth: dnYubGlzdHNAd2FuYWRvby5mcg== X-ME-Date: Mon, 30 Mar 2015 19:51:44 +0200 X-ME-IP: 193.251.178.45 Date: Mon, 30 Mar 2015 19:51:42 +0200 From: Vincent Veyron To: Vincenzo Campanella , stirling.newberry@gmail.com Cc: avpro avpro , pgsql-novice@postgresql.org, pgsql-sql@postgresql.org, pgsql-general@postgresql.org Subject: Re: Re: [GENERAL] Link Office Word form document with data from PostgreSQL Message-Id: <20150330195142.679f46979311c6b80efc0f24@wanadoo.fr> In-Reply-To: <55196DB8.6090501@gmail.com> References: <20150330150121.39fc80c1614692b758a6aae3@wanadoo.fr> <55196DB8.6090501@gmail.com> X-Mailer: Sylpheed 3.2.0 (GTK+ 2.24.10; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org On Mon, 30 Mar 2015 17:37:28 +0200 Vincenzo Campanella wrote: Stirling Newberry wrote: >post the code Here you go : http://pastebin.com/eVXZiFws This is a mod_perl module used in the HeaderParser phase of the Apache request cycle; it first grabs the sql associated with the model, and passes parameters to it; this sql is used to retrieve the required values for the model, and the placeholders in the document are replaced with those values. The user is then redirected to the newly created document You can see it in action in the demo account of the site referenced in my signature : open any file (those are legal files/insurance claims), click on the 'Contributors' tab (third tab from left; add a contributor if none is present), and click on 'Templates'. Click on the template to generate a document -- Salutations, Vincent Veyron https://legalcase.libremen.com/ Legal case, contract and insurance claim management software -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql