The stupid question is the question not asked | |
PerlMonks |
Re: Spreadsheet::SaveParser - how to preserve formulas during parse, evaluate during write ?by jmcnamara (Monsignor) |
on Jan 08, 2010 at 23:51 UTC ( [id://816422]=note: print w/replies, xml ) | Need Help?? |
I am the current maintainer of Spreadsheet::ParseExcel. Excel stores formulas in two parts. The first in a pre-parsed stack of RPN tokens that the Excel formula parser uses and the second is the value of the formula when it was last evaluated (generally when the workbook was saved). Spreadsheet::ParseExcel ignores the first part (a general deparser is a little too tricky to implement) and just reads the result part. This is usually okay for applications that read an Excel file but isn't very useful if you are trying to re-write a file since the formula is effectively lost. This is currently the case with Spreadsheet::ParseExcel::SaveParser. So it isn't the case that your formulas aren't being evaluated at the right time. They aren't evaluated at all. Currently, there isn't a workaround for this. I have some plans for solutions that might be implemented in the future but they are either non-trivial or potentially error prone and neither will happen in the short term, unfortunately.
--
In Section
Seekers of Perl Wisdom
|
|