FastReport添加自定义函数重复的问题

Type myType = typeof(CustomFunctions);
MethodInfo transToBigChinese = myType.GetMethod("TransToBigChinese");
if (!RegisteredObjects.IsTypeRegistered(myType))
{
    RegisteredObjects.Add(myType, "Functions,CustomFuncs,", 0x34);//要先注册这段才可以进行判断
    RegisteredObjects.AddFunction(transToBigChinese, "CustomFuncs");
}

 

posted @ 2013-01-15 10:39  Carpe_Diem  阅读(710)  评论(0编辑  收藏  举报