31

        sheet.mergeCells(4, startIndex, 4, baseLineNum-1);
            sheet.getWritableCell(0, baseLineNum+2).setCellFormat(colorCenterFormat);
            sheet.getWritableCell(1, baseLineNum+2).setCellFormat(colorCenterFormat);
            sheet.getWritableCell(2, baseLineNum+2).setCellFormat(colorCenterFormat);
            sheet.getWritableCell(3, baseLineNum+2).setCellFormat(colorCenterFormat);
            sheet.getWritableCell(4, baseLineNum+2).setCellFormat(colorCenterFormat);
           
            baseLineNum+=3;
        }

   catch (RowsExceededException e)
        {
            e.printStackTrace();
        }
        catch (WriteException e)
        {
            e.printStackTrace();
        }
        catch(Exception e){
            e.printStackTrace();
        }
       
        return baseLineNum;
    }
   
    @Override
    protected void setProcID()
    {
        procID = "EIPSenderTask";
    }
    public static void main(String[] args)
    {
//        new EIPSenderTask().execute(null);
        String inFilePath = "./resources/config/Software.xls";
        int index = inFilePath.lastIndexOf("/");
//        System.out.println(index);
        System.out.println(inFilePath.substring(index+1, inFilePath.length()));
     
    }
   
}

阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页