建议你看看这篇csdn博客http://blog.csdn.net/jokeesloat/article/details/7164017这里关于数据导入到Excel和Excel数据导出有详细代码和说明。