I want to implement a bunch of custom functions. Here are my specific questions:
- What is the standard way of signaling errors from the CalculateCustomFunction method? The documentation for CalculateCustomFunction:
http://www.aspose.com/docs/display/cellsnet/CalculateCustomFunction+Methoddoesn’t mention anything. Here are some options:
- Throw an exception
- Return some special object that could interpreted as an error object by the ASPOSE library.
I want to report an error when the user tries to execute a function that is not supported, or when the actual list of parameters doesn’t match the function parameters in number or type etc. I want the message to make sense for the user so ideally my custom message would somehow surface to the user.
- Are the CalculateCustomFunction calls made in the same execution thread as the call to the Workbook.CalculateFormula API or could they be executed in different threads?