Exemple #1
0
        static void Main(string[] args)
        {
            string filePath = "D:\\0EF00820.xls";

            Program p = new Program();

            p.ReadExcel(filePath);
            Console.WriteLine(p.arry[0, 0]);//这里是测试数组的值是否正确
            Console.ReadLine();
            for (int i = 1; i < p.arry.Length; i = ++i)
            {
                if (p.arry[i, 0] == null)
                {
                    break;
                }
                else
                {
                    Console.WriteLine(p.arry[i, 0]);
                }
            }
        }