Hello,
I try write Excel function using ExcelDna and NetOffice
For example:
[ExcelFunction(Description = "My description.", IsMacroType = true)]
public static object GetSize( [ExcelArgument(AllowReference = true)]object cell) {
if (!(cell is ExcelReference)) {
return ExcelError.ExcelErrorValue;
}
Excel.Range rng = (Excel.Range)cell;
return something;
}
But I cannot convert xcelDna.Integration.ExcelReference to NetOffice.ExcelApi.Range
I use ExcelDna 0.29, NetOffice 1.5.1.2, Excel 2010 32bit, Win7 64bit and Visual Studio 2008 Pro.
I writed similar function in my past computer and worked correctly, (with Excel 2002)
Can you help me? Am I doing something wrong?
I wrote same question on NetOffice: http://netoffice.codeplex.com/discussions/403771
Thanks for answer.
Radek
