X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 9C51DD1E934 for ; Tue, 16 Mar 2004 11:47:16 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 29878-02 for ; Tue, 16 Mar 2004 07:47:17 -0400 (AST) Received: from fep02-mail.bloor.is.net.cable.rogers.com (fep02-mail.bloor.is.net.cable.rogers.com [66.185.86.72]) by svr1.postgresql.org (Postfix) with ESMTP id 6F39FD1E928 for ; Tue, 16 Mar 2004 07:47:14 -0400 (AST) Received: from phlogiston.dydns.org ([65.49.121.67]) by fep02-mail.bloor.is.net.cable.rogers.com (InterMail vM.5.01.05.12 201-253-122-126-112-20020820) with ESMTP id <20040316114626.VXCP434741.fep02-mail.bloor.is.net.cable.rogers.com@phlogiston.dydns.org> for ; Tue, 16 Mar 2004 06:46:26 -0500 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id 82C3C3DC8; Tue, 16 Mar 2004 06:47:16 -0500 (EST) Date: Tue, 16 Mar 2004 06:47:16 -0500 From: Andrew Sullivan To: psql Subject: Re: Import from Ms Excel Message-ID: <20040316114716.GA4503@phlogiston.dyndns.org> Mail-Followup-To: psql References: <20040316112930.GA4436@phlogiston.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.5.1+cvs20040105i X-Authentication-Info: Submitted using SMTP AUTH LOGIN at fep02-mail.bloor.is.net.cable.rogers.com from [65.49.121.67] using ID at Tue, 16 Mar 2004 06:46:26 -0500 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/163 X-Sequence-Number: 17262 On Tue, Mar 16, 2004 at 01:42:45PM +0200, Achilleus Mantzios wrote: > Another fancy lib (although not necessarilly pgsql specific), > is the POI project from jakarta. > You can read/write M$ XLS documents from java, and > subsequently (via jdbc) manipulate pgsql tables. > > The good part is that you can dynamically generate an excel file > with arbitary content. You can do the same thing (I have done it) with Perl using the Pg and WriteExcel modules. Excel has a lot of pretty annoying limitations, though, and it's fairly dangerous to get too dependent on it for this sort of thing, as you can easily run into its limitations. I suppose it depends on how big your resulting spreadsheets are going to be. In my experience, though, the first thing that happens when you deliver someone a summary spreadsheet is, they ask you for the raw data so they can double-check it. A -- Andrew Sullivan | ajs@crankycanuck.ca This work was visionary and imaginative, and goes to show that visionary and imaginative work need not end up well. --Dennis Ritchie