所在位置:首页 → 游戏资讯 → poi浏览器使用教程-puffin por浏览器

poi浏览器使用教程-puffin por浏览器

发布: 更新时间:2023-03-24 12:24:42

本文目录一览:

  • 1、poi3网址注册码怎么获得
  • 2、poi浏览器无法登陆谷歌账号
  • 3、求问poi浏览器插件怎么更新不了
  • 4、poi打不开网页
  • 5、如何用Apache POI操作Excel文件

poi3网址注册码怎么获得

1、首先打开电脑,点击浏览器。

2、其次进入主页,点击poi3网址。

3、最后进入网址,点击右下角个人,点击注册页面即可获得注册码。

poi浏览器无法登陆谷歌账号

因为poi浏览器是一款移动端浏览器,而谷歌账号只能在电脑端登陆,所以poi浏览器是无法登陆谷歌账号的。

求问poi浏览器插件怎么更新不了

升级浏览器插件步骤:

1.打开浏览器,进入 adobe 中国官网。点击页面顶部右侧的“菜单”链接,页面弹出选择菜单。

2.点击菜单底部的 adobe flash player,进入下载更新的向导页面。向导页面的左侧显示当前 adobe flash player 的最新版本号,以及探测到的我们的系统的信息。中间是“可选产品”,根据实际需要保留或去掉相关安装选项前面的对勾。最后,点击页面右下角的“立即安装”按钮,IE浏览器底部会出现安全提示,可以点击“运行”。

3.出现安装界面,

4.打开视频,在播放的画面上右击,可以看到 flash 播放器已经是最新版了。

5.平时,可以通过以下过程:开始--控制面板--系统和安全页面,底部有flashplayer选项,进行更新设置;没有特殊情况,让它自动更新就行了。

poi打不开网页

首先,您可以尝试重新启动poi,看看是否能够打开网页。如果还无法打开,则可以尝试检查本地的网络设置是否正常,并更新poi至最新版本。您也可以尝试使用其他浏览器来打开网页,以排除poi软件问题。

如何用Apache POI操作Excel文件

controller

@RequestMapping("assign2/downloadAssignWayConfigHistory.do")

publicvoiddownloadAssignWayConfigHistory(HttpServletResponseresponse,

@RequestParam(value="collectName",required=false)StringcollectName,

@RequestParam(value="modifyStartTime",required=false)StringmodifyStartTime,

@RequestParam(value="modifyEndTime",required=false)StringmodifyEndTime){

StringfileName="下载清单";

response.setContentType("application/binary;charset=UTF-8");

try{

ServletOutputStreamout=response.getOutputStream();

try{

//设置文件头:最后一个参数是设置下载文件名

response.setHeader("Content-Disposition","attachment;fileName="+URLEncoder.encode(fileName+".xls","UTF-8"));

}catch(UnsupportedEncodingExceptione){

e.printStackTrace();

}

String[]excleTitles=null;//Excel第一行标题

ArrayListMapString,ObjectexcelDatas=newArrayListMapString,Object();//Excel数据

excleTitles=newString[]{"标题1","标题2","标题3","标题4","标题5","标题6","标题7","标题8","标题9","标题10","标题11","标题12"};

//获取数据

HashMapString,Objectparams=newHashMapString,Object();

if(StringUtils.isNotBlank(collectName)){

params.put("collectName",collectName);

}

if(StringUtils.isNotBlank(modifyStartTime)){

params.put("modifyStartTime",modifyStartTime);

}

if(StringUtils.isNotBlank(modifyEndTime)){

params.put("modifyEndTime",modifyEndTime);

}

MapString,ObjectassignCaseWayHistory=collectCenterAssignSettingService.getAssignCaseWayHistory(params);

excelDatas=(ArrayList)assignCaseWayHistory.get("rows");

//导出Excel

collectCenterAssignSettingService.exportAssignCaseWayHistory(excleTitles,excelDatas,out);

}catch(Exceptione){

e.printStackTrace();

}

}

service

publicvoidexportAssignCaseWayHistory(String[]exceltitles,

ArrayListMapString,ObjectexcelDatas,OutputStreamout){

try{

//第一步,创建一个workbook,对应一个Excel文件

HSSFWorkbookworkbook=newHSSFWorkbook();

//第二步,在webbook中添加一个sheet,对应Excel文件中的sheet

HSSFSheethssfSheet=workbook.createSheet("sheet1");

//第三步,在sheet中添加表头第0行,注意老版本poi对Excel的行数列数有限制short

HSSFRowrow=hssfSheet.createRow(0);

//不带背景颜色居中的cellStyle

HSSFCellStylehssfCellStyle=workbook.createCellStyle();

//居中

hssfCellStyle.setAlignment(HSSFCellStyle.ALIGN_CENTER);

hssfCellStyle.setVerticalAlignment(hssfCellStyle.VERTICAL_CENTER);

//带背景和字体颜色并且居中的cellStyle

HSSFCellStylehssfCellStyleWithBackgroundColor=workbook.createCellStyle();

//居中

hssfCellStyleWithBackgroundColor.setAlignment(HSSFCellStyle.ALIGN_CENTER);

hssfCellStyleWithBackgroundColor.setVerticalAlignment(hssfCellStyle.VERTICAL_CENTER);

//背景

hssfCellStyleWithBackgroundColor.setFillForegroundColor(IndexedColors.YELLOW.getIndex());

hssfCellStyleWithBackgroundColor.setFillPattern(hssfCellStyle.SOLID_FOREGROUND);

//字体

HSSFFontfont=workbook.createFont();

font.setColor(HSSFColor.RED.index);

hssfCellStyleWithBackgroundColor.setFont(font);

HSSFCellhssfCell=null;

for(inti=0;iexceltitles.length;i++){

hssfCell=row.createCell(i);//列索引从0开始

hssfCell.setCellValue(exceltitles[i]);//列名1

hssfCell.setCellStyle(hssfCellStyle);//列居中显示

//设置列宽

if(i==1||i==6||i==7){

hssfSheet.setColumnWidth(i,5000);

}else{

hssfSheet.setColumnWidth(i,3000);

}

}

//第五步,写入实体数据

for(inti=0;iexcelDatas.size();i++){

row=hssfSheet.createRow(2*i+1);//奇数行

MapString,ObjectexcelData=excelDatas.get(i);

//第六步,创建单元格,并设置值

StringupdateBy=(String)excelData.get("updateBy");

StringupdateDate=(String)excelData.get("updateDate");

Stringregion=(String)excelData.get("region");

Stringbranch=(String)excelData.get("branch");

Stringcenter=(String)excelData.get("center");

Stringdept=(String)excelData.get("dept");

StringassignMode=(String)excelData.get("assignMode");

StringnewAssignMode=(String)excelData.get("newAssignMode");

StringturnableDimension=(String)excelData.get("turnableDimension");

StringnewTurnableDimension=(String)excelData.get("newTurnableDimension");

StringM0=(String)excelData.get("M0");

StringM1=(String)excelData.get("M1");

StringM2=(String)excelData.get("M2");

StringM3=(String)excelData.get("M3");

StringnewM0=(String)excelData.get("newM0");

StringnewM1=(String)excelData.get("newM1");

StringnewM2=(String)excelData.get("newM2");

StringnewM3=(String)excelData.get("newM3");

HSSFCellcell0=row.createCell(0);

cell0.setCellStyle(hssfCellStyle);

cell0.setCellValue(updateBy);

HSSFCellcell1=row.createCell(1);

cell1.setCellStyle(hssfCellStyle);

cell1.setCellValue(updateDate);

HSSFCellcell2=row.createCell(2);

cell2.setCellStyle(hssfCellStyle);

cell2.setCellValue(region);

HSSFCellcell3=row.createCell(3);

cell3.setCellStyle(hssfCellStyle);

cell3.setCellValue(branch);

HSSFCellcell4=row.createCell(4);

cell4.setCellStyle(hssfCellStyle);

cell4.setCellValue(center);

HSSFCellcell5=row.createCell(5);

cell5.setCellStyle(hssfCellStyle);

cell5.setCellValue(dept);

HSSFCellcell6=row.createCell(6);

cell6.setCellStyle(hssfCellStyle);

cell6.setCellValue(assignMode.equals("0")?"模式1":"模式2");

if("BRANCH".equals(turnableDimension)){

turnableDimension="分部";

}elseif("CENTER".equals(turnableDimension)){

turnableDimension="中心";

}elseif("DEPT".equals(turnableDimension)){

turnableDimension="部";

}

HSSFCellcell7=row.createCell(7);

cell7.setCellStyle(hssfCellStyle);

cell7.setCellValue(turnableDimension);

HSSFCellcell8=row.createCell(8);

cell8.setCellStyle(hssfCellStyle);

cell8.setCellValue(M0.equalsIgnoreCase("Y")?"案2":"案2");

HSSFCellcell9=row.createCell(9);

cell9.setCellStyle(hssfCellStyle);

cell9.setCellValue(M1.equalsIgnoreCase("Y")?"案1":"案2");

HSSFCellcell10=row.createCell(10);

cell10.setCellStyle(hssfCellStyle);

cell10.setCellValue(M2.equalsIgnoreCase("Y")?"案1":"案2");

HSSFCellcell11=row.createCell(11);

cell11.setCellStyle(hssfCellStyle);

cell11.setCellValue(M3.equalsIgnoreCase("Y")?"案1":"案2");

row=hssfSheet.createRow(2*i+2);//偶数行

HSSFCellnewCell6=row.createCell(6);

newCell6.setCellValue(newAssignMode.equals("0")?"模式1":"模式2");//设置值

if(!newAssignMode.equals(assignMode)){//设置背景色

newCell6.setCellStyle(hssfCellStyleWithBackgroundColor);

}else{

newCell6.setCellStyle(hssfCellStyle);

}

if("BRANCH".equals(newTurnableDimension)){

newTurnableDimension="haha";

}elseif("CENTER".equals(newTurnableDimension)){

newTurnableDimension="hehe";

}elseif("DEPT".equals(newTurnableDimension)){

newTurnableDimension="hiahia";

}

HSSFCellnewCell7=row.createCell(7);

newCell7.setCellValue(newTurnableDimension);

if(!newTurnableDimension.equals(turnableDimension)){//设置背景色

newCell7.setCellStyle(hssfCellStyleWithBackgroundColor);

}else{

newCell7.setCellStyle(hssfCellStyle);

}

HSSFCellnewCell8=row.createCell(8);

newCell8.setCellValue(newM0.equalsIgnoreCase("Y")?"案1":"案2");

if(!newM0.equals(M0)){//设置背景色

newCell8.setCellStyle(hssfCellStyleWithBackgroundColor);

}else{

newCell8.setCellStyle(hssfCellStyle);

}

HSSFCellnewCell9=row.createCell(9);

newCell9.setCellValue(newM1.equalsIgnoreCase("Y")?"案1":"案2");

if(!newM1.equals(M1)){//设置背景色

newCell9.setCellStyle(hssfCellStyleWithBackgroundColor);

}else{

newCell9.setCellStyle(hssfCellStyle);

}

HSSFCellnewCell10=row.createCell(10);

newCell10.setCellValue(newM2.equalsIgnoreCase("Y")?"案1":"案2");

if(!newM2.equals(M2)){//设置背景色

newCell10.setCellStyle(hssfCellStyleWithBackgroundColor);

}else{

newCell10.setCellStyle(hssfCellStyle);

}

HSSFCellnewCell11=row.createCell(11);

newCell11.setCellValue(newM3.equalsIgnoreCase("Y")?"案1":"案2");

if(!newM3.equals(M3)){//设置背景色

newCell11.setCellStyle(hssfCellStyleWithBackgroundColor);

}else{

newCell11.setCellStyle(hssfCellStyle);

}

//合并单元格

for(intj=0;j6;j++){

CellRangeAddresscellRangeAddress=newCellRangeAddress(2*i+1,2*i+2,j,j);

hssfSheet.addMergedRegion(cellRangeAddress);

}

}

//第七步,将文件输出到客户端浏览器

try{

workbook.write(out);

out.flush();

out.close();

}catch(Exceptione){

e.printStackTrace();

}

}catch(Exceptione){

e.printStackTrace();

}

}

文章排行