Exemple #1
0
 /// <summary>
 /// Excel转换为XML
 /// </summary>
 /// <param name="fileDir">文件路径</param>
 private void ExcelToXml(string fileDir)
 {
     try
     {
         EpplusExcelAnalysis excelAnalysis = new EpplusExcelAnalysis(fileDir);
         tcDic = excelAnalysis.ReadExcel();
         XmlHandler xh = new XmlHandler(tcDic);
         xh.WriteXml();
     }
     catch (Exception ex)
     {
         this._logger.Error(ex);
         OutputDisplay.ShowMessage(ex.ToString(), Color.Red);
         return;
     }
 }
Exemple #2
0
        public void SetUp()
        {
            string filePath = @"E:\Github\TestLinkConverter\Resource\TestCase.xlsx";

            this.epplusExcelAnalysis = new EpplusExcelAnalysis(filePath);
        }