Hi,
I saw in one of the comments on this blog: http://blogs.msdn.com/cumgranosalis/archive/2006/04/11/WebServiceAsyncUdfs.aspx#1282044 that UDFs do not support overloading of methods.
I also read in this article: http://msdn2.microsoft.com/en-us/library/ms495224.aspx that a UDF method cannot have Optional arguments.
I am trying to create UDF methods with same name, but with different number of parameters for Excel Services. Something like:
[UdfMethod(IsVolatile = true)]
[ComVisible(false)]
public object MyUDFMethod(object[,] arg1)
{
......
}
[UdfMethod(IsVolatile = true)]
[ComVisible(false)]
public object MyUDFMethod(object[,] arg1, object[,] arg2)
{
......
}
OR
[UdfMethod(IsVolatile = true)]
[ComVisible(false)]
public object MyUDFMethod(object[,] arg1, [Optional]object[,] arg2)
{
......
}
Is there any alternative to have this supported by Excel Services?
Thanks.
Aleksandra