poi导出excel2003.docx


文档分类:办公文档 | 页数:约7页 举报非法文档有奖
1/7
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/7
文档列表 文档介绍
.excel;
import ;
import ;
import ;
import ;
import ;
import ;
.;
.;
.;
.;
.;
.;
.;
.;
.;
public class TestExportExcel {


public static void testExport() throws IOException {

HttpServletRequest request = ();
HttpServletResponse response = ();
OutputStream os = ();// 取得输出流
();// 清空输出流

String FName = getExcelFilename(request);

("Content-disposition","attachment; filename="+ new String((),"iso-8859-1") + ".xls");// 设定输出文件头
("application/msexcel");// 定义输出类型


List<String[]> list1 =getExcelDataList(request);//获取数据集合

List<String> list2 = getColoumNameList(request);//获取列明集合

list2=new ArrayList<String>(list2);
String[] FNameArray = ("_");

String SheetName =FNameArray[0];//获取标题名称

createXLSfromArrayList(os,

poi导出excel2003 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数7
  • 收藏数0 收藏
  • 顶次数0
  • 上传人mh900965
  • 文件大小15 KB
  • 时间2017-12-14