Hi Shashi,
Please try this fix.The following is custom function interface. If you want to use custom function, you must implement the interface and call Workbook.calculateFormula(boolean ignoreError,ICustomFunction customFunction) method .
/**
* Allows users to add their custom formula calculation functions to extend the calculation engine.
*
*/
public interface ICustomFunction
{
/**
* Calculates the result of custom function.
* If a custom function name is not supported, please return a null reference.
* Currently there are 3 fixed context objects and some varialbe context objects:
*
1. Current Workbook object.
*
2. Current Worksheet object.
*
3. Current Cell object.
*
Others are custom function parameters text.
*
* @param functionName Custom function name, such as "MyFunc1".
* @param paramsList A list of parameters value for custom functions.
* The parameter object type is in the following types :
* Boolean,String,Integer,Double,Calendar,double[][],Double[][].
* @param contextObjects A list of context objects.
* @return Result of custom function.
* Only support return object types:
* Boolean,String,Integer,Double,Calendar,double[][],Double[][].
*
*/
Object calculateCustomFunction(String functionName,
ArrayList paramsList, ArrayList contextObjects);
}