Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Import im = new Import();
            Console.WriteLine("文本URL:");
            string path = Console.ReadLine();
            im.readFromTxt(path);

            ExcelProcess exlP = new ExcelProcess(path.Substring(0, path.Count() - 5));

            exlP.ImportExcel(im.GetContent());
            Console.WriteLine("导入成功!");
            Console.Read();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Import im = new Import();

            Console.WriteLine("文本URL:");
            string path = Console.ReadLine();

            im.readFromTxt(path);

            ExcelProcess exlP = new ExcelProcess(path.Substring(0, path.Count() - 5));

            exlP.ImportExcel(im.GetContent());
            Console.WriteLine("导入成功!");
            Console.Read();
        }