本帖最后由 willjacky 于 2009-12-29 21:22:39 编辑

解决方案 »

  1.   

    结贴率不高啊。楼主
    这个check规则,不是公司给出吗?
    你要掌握的技术点是excel的操作(主要是读操作,好像没有写的要求)
    文本文件的操作,(写操作,用来做日志输出)
      

  2.   

    这个……check好像不是语法吧 你自己写个方法实现不行吗
      

  3.   

    写错误日志:
    using System.Diagnostics;
    using System.IO;
    string tracefile = "";
    tracefile += Application.StartupPath;
    tracefile += "\\错误日志文件.txt";System.IO.FileStream myTraceLog = new
                   System.IO.FileStream(tracefile,
                   System.IO.FileMode.OpenOrCreate);
                // Creates the new trace listener.
    System.Diagnostics.TextWriterTraceListener myListener =
                   new System.Diagnostics.TextWriterTraceListener(myTraceLog);Trace.Listeners.Add(myListener);
    Trace.AutoFlush = true;Trace.write/writeline就可以再出错的地方写入错误日志了
      

  4.   

    3楼的你能再帮忙随便写个check的方法吗  我主要看看怎么写 分都给你啊 ~~~