Exemplo n.º 1
0
        /// <summary>
        /// 測試
        /// </summary>
        /// <param name="args"></param>
        public static void Main(string[] args)
        {
            //const string configFile = "C:/workspace/RbtProject/srcExcelOpt/import_sample.xml";
            const string configFile = "e:/TESN/ExcelConfig/Import/Import_UnitRawData.xml";

            const string configID   = "UnitRawData";
            const string importFile = "q:/統一編號/utn3386k_xlsx/utn3386K_00.xlsx";

            ImportConfigInfo importConfigInfo = (new ImportConfigReader()).read(configFile, configID);

            IList <Dictionary <string, object> > result;

            using (StreamReader sr = new StreamReader(importFile))
            {
                result = new ExcelImporter().readXlsx(sr.BaseStream, importConfigInfo);
            }

            //Console.Write(result);
        }
Exemplo n.º 2
0
 public ComparatorAnonymousInnerClassHelper(ExcelImporter outerInstance)
 {
     this.outerInstance = outerInstance;
 }