At $work, there are a lot of spreadsheets floating around that have defined Access queries as data sources. Those queries in turn use tables that are linked to a PostgreSQL database. When the user of the spreadsheet refreshes the spreadsheet, Excel re-runs the Access query and automatically pulls it in.

I don't like this architecture for a variety of reasons, not the least of which is that the people who wrote those Access queries often didn't know what they were doing, and sometimes break each other's spreadsheets by changing the queries. However they really like the ease of setting up spreadsheets that automatically refresh their data, and I completely see their point.

I'd like to be able to develop reports, preferably in Perl and preferably in Linux, that can similarly be linked into Excel spreadsheets and automatically refreshed (causing my reports to be re-run). If this involves adding a plugin to Excel, that's fine. If I need to do something like provide a URL that serves XML, that's fine as well.

Has anyone actually done anything like this, and if so can you point me at the appropriate alphabet soup of technologies (preferably as simple a stack as possible) that I need to make it work?


In reply to Excel automatically pulling data from Perl? by tilly

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.