Cell = Row.getCell(ColNum, Row.RETURN_BLANK_AS_NULL);

Downloaded the code and converted into Maven project after adding the all dependencies …i am getting the above issues

public static void setCellData(String Result, int RowNum, int ColNum) throws Exception {
try{
Row = ExcelWSheet.getRow(RowNum);
Cell = Row.getCell(ColNum, Row.RETURN_BLANK_AS_NULL);
if (Cell == null) {
Cell = Row.createCell(ColNum);
Cell.setCellValue(Result);
} else {
Cell.setCellValue(Result);
}

Default Asked on December 13, 2017 in Program QA Automation.
Add Comment
  • 0 Answer(s)
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.