标签:des get string user new 代码 file value val ice show
using(FileStream stream=new
FileStream("C:\Users\XXXXXX\Desktop\1.xls",FileMode.Open))
{
HSSFWorkbook workbook=new HSSFWorkbook(stream);
HSSWSheet sheet=workbook.GetSheetAt(0);
HSSFRow row=sheet.GetRow(0);
HSSFCell cell=row.GetCell(0);
MessageBox.Show(cell.stringcellvalue);
}
NPOI技术一般用在03版的office,而之后的07班都是用.xlsx结尾的,都是xaml代码,可以吧某个execel表的格式改为zip,exe就可以看到xaml内容了
标签:des get string user new 代码 file value val ice show
原文地址:http://www.cnblogs.com/shangguanjinwen/p/3701397.html