you can walk an easier road to get your Excel Table filled with PostgreSQL data:
there is an ODBC.Driver for PostgreSQL, you can google it or find it within the standard PostgreSQL for Windows Installer.
After installing the ODBC driver, PostgreSQL is a normal data soure to Excel; you can put your Query into MSQuery (or whatever that tool is called in your Office Version) and have your data directly within Excel.
So your Icon on the desktop can be a simple link to an Excel template, which has the query included.
Hope that helps,
best wishes,
Harald
-- GHUM Harald Massa persuadere et programmare Harald Armin Massa Reinsburgstraße 202b 70197 Stuttgart 0173/9409607 - on different matter: EuroPython 2006 is over. It was a GREAT conference. If you missed it, now you can prepare budget for visiting EuroPython 2007.