Update: I am curious...The problem appears to be that multiple folks need the current values of a spreadsheet on a daily basis. Instead of parsing the spreadsheet and emailing results, why isn't the idea to post this spreadsheet on a website so that each user can just login and see current status whenever they wish? I am wondering if the "right" question is being asked?

Update2: in the Chatterbox, I got turned onto Spreadsheet::Read. That looks extremely promising.

====
I am also currently working on a spreadsheet parsing problem at the moment, There are a number of confusing options for reading spreadsheets. Win32::OLE is one of them. There are other ways to read the spreadsheet file (.xls,.xlsx) directly. I haven't found a great option yet, but there are some out there.

This google search perl+spreadsheet+xlsx turned up some interesting stuff.

Yesterday to get started, I implemented some code with an old module (Spreadsheet::DataFromExcel) that can only read .xls files, but this was very easy and got me past a blocking point and onto the more difficult parts of my current assignment.

use Spreadsheet::DataFromExcel; my $p = Spreadsheet::DataFromExcel->new; my $web = $p->load('Roster.xls', 'For Web',3) or die $p->error; # $web is ref to AoA for that sheet
This is all the functionality that I need, except that it doesn't work with .XLSX. Maybe some Monk here can advise on the easiest way to get that 2 lines of functionality with .XLSX? If so, then that probably satisfies both of our requirements.


In reply to Re: Excel file data - mail by Marshall
in thread Excel file data - mail by vasanth.easyrider

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.