using (FileStream fs = File.OpenRead(@"E:\a.xls")) //打开myxls.xls文件
{
HSSFWorkbook wk = new HSSFWorkbook(fs); //把xls文件中的数据写入wk中
wk.RemoveSheetAt(0);
using (FileStream fileHSSF = new FileStream(@"E:\a.xls", FileMode.Create))
{
wk.Write(fileHSSF);
fileHSSF.Close();
}
wk.Close();
fs.Close();
}