FastReport添加自定义函数重复的问题
Type myType = typeof(CustomFunctions); MethodInfo transToBigChinese = myType.GetMethod("TransToBigChinese"); if (!RegisteredObjects.IsTypeRegistered(myType)) { RegisteredObjects.Add(myType, "Functions,CustomFuncs,", 0x34);//要先注册这段才可以进行判断 RegisteredObjects.AddFunction(transToBigChinese, "CustomFuncs"); }