I have a question about the SaveParser related to parsing the xls and formulas.

I have an xls template with 3 worksheets. The first 2 worksheets have numerous formulas that depend on cell values in the 3rd sheet.

The 3rd sheet is empty except for some column headers - I'm populating the cells with results of oracle queries. That part is working fine.

However, at the point I initially create the new SaveParser object to parse the xls template, it appears to be evaluating the formulas and converting to values at that point. Since the 3rd sheet is empty on the template, all the values in the first two sheets evaluate to zero. Subsequently changing the 3rd worksheet has no effect.

Is there any way to get SaveParser to preserve formulas while parsing the xls, then run my queries to populate the 3rd worksheet, then the formulas evaluated to values on the write with SaveAs ?

Thanks!


In reply to Spreadsheet::SaveParser - how to preserve formulas during parse, evaluate during write ? by mikeh0078

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.