Unity Error:InvalidCastException: Cannot cast from source type to destination type.

错误:
当我使用System.Data.dll解析Excel表格;碰到了这个错误:
在这里插入图片描述
错误定位:
这是excel的问题;报错的地方在:excelReader.AsDataSet();是因为excel格式的问题;

解决方式:
excel表中设置单元格格式为文本就可以解决了;

参考网址:
雨松MoMo 跨平台解析Excel

猜你喜欢

转载自blog.csdn.net/a0_67/article/details/121222003