static void Main() { Console.WriteLine("Hello!"); var filePath19 = "..\\..\\..\\ShedulerFromExcel.CMD\\Need\\09.03.02_АПиМОБИС_ИКБСП_2019.plx.xls"; var filePath17 = "..\\..\\..\\ShedulerFromExcel.CMD\\Need\\09.03.02_АПиМОБИС_ИКБСП_2017.plm.xml.xls"; // Обращение к парсеру Планов. EasyExcel easyExcel17 = new EasyExcel(filePath17); EasyExcel easyExcel19 = new EasyExcel(filePath19); Console.ReadLine(); }
private void btn_SpecFreFileBrowse_Click(object sender, EventArgs e) { string filter = "表格|*.xls;*.xlsx";//打开文件对话框筛选器 FileBrowseCallback(filter, delegate(string fileName) { string strPath = fileName; txt_FreSpecFilePath.Text = strPath; dgv_SpecFre.Columns.Clear(); DataTable temp = EasyExcel.GetSpecifiedTable(strPath); dgv_SpecFre.DataSource = temp; dgv_SpecFre.Columns[0].Name = ""; }); }