//
        //编辑Excel
        //
        private void btn_Edit_Add_Click(object sender, RoutedEventArgs e)
        {
            ZhuifengLib.EXCEL.ExcelControl _M_excel = new ZhuifengLib.EXCEL.ExcelControl();
            string err;

            _M_excel.OpenExcel("D:\\模板\\DeleteListTemplate.xlsx", out err);
        }
Example #2
0
 /// <summary>
 /// 编辑
 /// </summary>
 /// <param name="eFlowList_Contents"></param>
 public void EditProcess(ObservableCollection <Maticsoft.Model.e_Flow> eFlowList_Contents)
 {
     if (eFlowList_Contents != null)
     {
         ZhuifengLib.EXCEL.ExcelControl _M_excel = new ZhuifengLib.EXCEL.ExcelControl();
         string err;
         _M_excel.ClearDate(_ExcelPatch, 500); //清空模板中的数据
         _M_excel.ModelToExcel <Maticsoft.Model.e_Flow>(eFlowList_Contents.ToList(), _ExcelPatch);
         _M_excel.OpenExcel(_ExcelPatch, out err);
     }
     else
     {
         ZhuifengLib.EXCEL.ExcelControl _M_excel = new ZhuifengLib.EXCEL.ExcelControl();
         string err;
         _M_excel.ClearDate(_ExcelPatch, 500);
         _M_excel.OpenExcel(_ExcelPatch, out err);
     }
 }