当前位置: 代码迷 >> .NET面试 >> .net 开发的excel 主程序代码,该怎么处理
  详细解决方案

.net 开发的excel 主程序代码,该怎么处理

热度:10   发布时间:2016-05-02 01:25:27.0
.net 开发的excel 主程序代码
本帖最后由 zanfeng 于 2014-05-09 12:54:36 编辑


上面的图这是作为皮肤用的例子。

1. 控件类型可以扩展。
2.也可以自定义函数。
下面是函数扩展的例子

using System;
using System.Collections.Generic;
using System.Text;
using Feng.Office.Excel;

namespace FunctionpPlusTest
{
    [Serializable]
    public class FunctionpPlusFunctionTest : BaseMethod
    {

        public FunctionpPlusFunctionTest(IMethodCollection methods) :
            base(methods)
        {
   
        }

        public override string Name
        {
            get { return "函数扩展示例"; }
            set { }
        }

        List<IMethodInfo> _MethodList = new List<IMethodInfo>();
        public override List<IMethodInfo> MethodList
        {
            get
            {
                return _MethodList;
            }
        }
        #region IMothodNameList 成员

        public override bool Contains(string method)
        {

            switch (method)
            {
                case "当月木材销售量":
                    return true;
                default:
                    break;
            }
            return false;
        }

        #endregion

        #region IRunMethod 成员

        public override object RunMethod(ICell cell, string methodname, params object[] args)
        {
            object obj = null;
            switch (methodname)
            {
                case "当月木材销售量":
                    return Feng.App.ConvertHelper.ToDecimal(args[0]) * Feng.App.ConvertHelper.ToDecimal(args[1]);
                default:
                    break;
            }
            return obj;
        }

        #endregion
    }
}



dataexcel主程序代码。就是下面界面的源码
http://download.csdn.net/detail/zanfeng/7321139

------解决方案--------------------


------解决方案--------------------

------解决方案--------------------
下载次数+1
------解决方案--------------------
下载下来看看,有用到什么特殊的功能吗?

------解决方案--------------------
支持  一下    
------解决方案--------------------
支持  一下  
------解决方案--------------------
不错,赞一个哦
------解决方案--------------------
 
------解决方案--------------------
前面那个是登录界面?然后进入主程序?
------解决方案--------------------
  相关解决方案