コード例 #1
0
        public static void DoTest()
        {
            string excelFile = EditorUtils.ProjectPath + "Assets/Editor/GameConfig/c场景配置表1.xlsx";

            FastExcel fastExcel = new FastExcel(excelFile);
            var       works     = fastExcel.Worksheets;
            Worksheet work      = fastExcel.Read(0);
            int       rowIndex  = 0;

            foreach (Row row in work.Rows)
            {
                int cellIndex = 0;
                foreach (Cell cell in row.Cells)
                {
                    Debug.Log("ceil(" + rowIndex + "," + cellIndex + "):" + cell.Value);
                    cellIndex++;
                }
                rowIndex++;
            }
        }