1.wps文档中的js宏代码:巧用eval(a)
function g1(a)
{
return eval(a)
}
2.Quicker中C#的函数
//.cs 文件类型,便于外部编辑时使用
// 引用必要的命名空间
using Word=Microsoft.Office.Interop.Word;
// Quicker将会调用的函数
public static void Exec(Quicker.Public.IStepContext context)
{
var oldValue = context.GetVarValue("g0");
var winObj = (Word.Application)System.Runtime.InteropServices.Marshal.GetActiveObject("Word.Application");//获取当前启动的word程序
var bb=winObj.Run("g1",oldValue);
context.SetVarValue("g2", bb);
}
修订版本 | 更新时间 | 更新说明 |
---|---|---|
0 | 1天19小时前 |