-
Notifications
You must be signed in to change notification settings - Fork 1
/
Test.cs
executable file
·31 lines (28 loc) · 1023 Bytes
/
Test.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*----------------------------------------------------------------
// Copyright (C) 2015 广州,Lucky Game
//
// 模块名:
// 创建者:D.S.Qiu
// 修改者列表:
// 创建日期:June 28 2016
// 模块描述:
//----------------------------------------------------------------*/
namespace PureExcel
{
public class Test
{
#if UNITY_EDITOR
[UnityEditor.MenuItem("Test/DoExcelParser")]
public static void DoTest()
{
string excelFilePath = @"G:\Comment.xlsx";
Excel excelParser = new Excel(excelFilePath);
Worksheet workSheet = excelParser.Read(0);
UnityEngine.Debug.LogError("Cell(0,0):" + workSheet.GetCell(0,0) + " comment:" + workSheet.GetComment(0,0));
Worksheet workSheet1 = excelParser.Read(1);
UnityEngine.Debug.LogError("Cell(2,1):" + workSheet1.GetCell(2, 1) + " comment:" + workSheet1.GetComment(2, 1));
excelParser.Dispose();
}
#endif
}
}