Formula with error

Feb 1, 2011 at 8:06 AM


 When I set CellFormula to "!Rec", the EPPlus does not create exception. But when open excel file with MS Excel, not set anything and cell is blank.

When set the cell formula in MS Excel to !Rec (=!Rec), Excel raise error.

How can I get error in EPPlus when set a formula with error?

Thanks a lot.

Feb 1, 2011 at 5:59 PM


Do you mean #REF! ?

Feb 3, 2011 at 5:18 AM

No, any expression that start with "!" (=!MyExpression). There is same problem if set formula to a datetime value (=2011/05/07 12:01:05).

Feb 3, 2011 at 3:06 PM

Ok, I see what you mean.

There is no validation in EPPlus when the formula property is set, so you have to be carefull.

I think it's quite complicated to add, so that will be something for the future.