jxl 写入excel

1.程序调用
  ReportInterface report = new ReportExcel(orderinfolist, "订单数据");
report.setReportStyle(new ReportStyle(Colour.GRAY_25, Alignment.CENTRE));
report.setColumnNames(new String[] { "订单号","下单时间","交易成功时间","收货人","用户id","订单金额","商品金额","收货地区","手机","固定电话","订单来源","下单方式","订单状态","支付状态","发货单号","销售数量"});
int[] a={-1,-1,-1,-1,-1,5,6,-1,-1,-1,-1,-1,-1,-1,-1,15};
report.setColumns(a);
report.generateReport(orderinfolist);
fileInputStream = report.getInputStream();
if (report != null) report.close();

你可能感兴趣的:(Excel)