excel formulae
This commit is contained in:
1 parent
ef4dc1fc65
commit
205eebb7da
1 file changed
+6
-1
@@ -4,6 +4,7 @@ using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using System.Text.RegularExpressions;
|
||||
using ExcelDna.Integration;
|
||||
using ExcelDna;
|
||||
using bts.api;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
@@ -16,8 +17,12 @@ namespace bts.excel
|
||||
static ConcurrentDictionary<string, object> _cache = new ConcurrentDictionary<string, object>();
|
||||
|
||||
[ExcelFunction(IsMacroType = true)]
|
||||
static public void bts_generate_code_from_sink(string name, [ExcelArgument(AllowReference=true)] object sink)
|
||||
static public string bts_generate_code_from_sink(string name, [ExcelArgument(AllowReference=true)] object sink)
|
||||
{
|
||||
ExcelReference rref = (ExcelReference)sink;
|
||||
var form = XlCall.Excel(XlCall.xlfGetCell, 41, rref);
|
||||
//var formabs = XlCall.Excel(XlCall.xlfFormulaConvert, form, ExcelDna.
|
||||
return form.ToString();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user