找到Excel文件的第一个工作表名称是EXCELDATA [英] find the 1st sheetname of excel file is EXCELDATA

查看:101
本文介绍了找到Excel文件的第一个工作表名称是EXCELDATA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

查看更多:ASP.NET朋友,

我正在使用VS 2005,asp.net,c#.
我有一个Web应用程序.
我想知道excel文件的第一个工作表名称是否为EXCELDATA
该怎么做?

在此先感谢
George

See more: ASP.NET Hi friends,

I am using VS 2005,asp.net,c# .
I have a web application.
I want to know whether the first sheetname of an excel file is EXCELDATA or not
How to do this?

Thanks in advance
George

推荐答案

除非您仅使用xlsx,然后才需要使用Excel interop,否则本文似乎会研究您的确切问题C#-检索Excel工作簿表名称. [读取和写入Open XML文件(MS Office 2007)中所述进行操作. a> [ ^ ]
Unless you only work with xlsx then you need to use Excel interop, this article seems to look into your exactt problem C# - Retrieve Excel Workbook Sheet Names.[^]

If you only use xlsx then you can also do as desribed in Read and write Open XML files (MS Office 2007)[^]


这篇关于找到Excel文件的第一个工作表名称是EXCELDATA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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