|Do you know where your variables are?|
Spreadsheet::SaveParser - how to preserve formulas during parse, evaluate during write ?by mikeh0078 (Initiate)
|on Jan 08, 2010 at 21:23 UTC||Need Help??|
mikeh0078 has asked for the wisdom of the Perl Monks concerning the following question:
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 ?