Error:System.Data.Common.DoubleDataContainer.DoCopyValue

InvalidCastException: Cannot cast from source type to destination type.
System.Data.Common.DoubleDataContainer.DoCopyValue (System.Data.Common.DataContainer from, Int32 from_index, Int32 to_index)
System.Data.Common.DataContainer.CopyValue (System.Data.Common.DataContainer from, Int32 from_index, Int32 to_index)
System.Data.Common.RecordCache.CopyRecord (System.Data.DataTable fromTable, Int32 fromRecordIndex, Int32 toRecordIndex)

若使用Excel 和 ICSharpCode.SharpZipLib库读取Excel中的报错,按照雨松momo博客中的方法代替即可
http://www.xuanyusong.com/archives/2429

也可参考本人 Windows下 Unity 读写Excel (打包exe可用)

猜你喜欢

转载自blog.csdn.net/u010314160/article/details/81203561