日期:2014-05-19  浏览次数:20741 次

请问用c#如何得到一个excel档有几个sheet?和这些sheet的名称?
请问用c#如何得到一个excel档有几个sheet?和这些sheet的名称?

------解决方案--------------------
曾经在国外站点看过,俺去翻翻箱子底儿!

稍后回来!
------解决方案--------------------
C# - Retrieve Excel Workbook Sheet Names.
http://www.codeproject.com/aspnet/getsheetnames.asp
------解决方案--------------------
有几个sheet
ExcelApp.worksheets.count
sheet的name
((excel.worksheet)excelApp.worksheets[i]).name
其中i为第几个sheet(从1开始)