我在excel工作表中有数据,但仍然显示错误IndexOutOfRangeException和未找到[0]行 [英] I have data in excel sheet but still it shows error IndexOutOfRangeException and [0] row is not found

查看:259
本文介绍了我在excel工作表中有数据,但仍然显示错误IndexOutOfRangeException和未找到[0]行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在excel工作表中有数据,但仍然显示错误IndexOutOfRangeException且未找到[0]行

I have data in excel sheet but still it shows error IndexOutOfRangeException and [0] row is not found

推荐答案

您的问题确实缺少很多其他信息.
不过,我想您正在使用Excel Interop,对吧?
疯狂的是第一行的索引是1.这同样适用于工作表和列.

同样,请注意,不应该在服务器端使用Excel Interop,不建议也不支持.
如果您对某些替代方案感兴趣,请指定您的确切需求,我会建议您几个.
Your question really lacks a lot of additional information.
Nevertheless I presume you are using Excel Interop, right?
The crazy thing about it is that first row''s index is 1. The same applies to sheets and columns.

Also just as a side note, you should not use Excel Interop on server side, it is not recommended, nor supported.
If you are interested in some alternatives then specify your exact needs and I will suggest you few.


这篇关于我在excel工作表中有数据,但仍然显示错误IndexOutOfRangeException和未找到[0]行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆