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()));
     
    }
   
}

阅读更多
文章标签: exception string null
上一篇30
下一篇页面的一些样式
想对作者说点什么? 我来说一句

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

关闭
关闭
关闭