Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Deal with empty or blank cell in excel file using apache poi

//If you are using apache dependency version 3.12 then you need to handle different way. The switch case statement should be replaced in the following way for numeric cell types.

switch (mobileCell.getCellType()) {
case NUMERIC:
	info.setMobile(NumberToTextConverter.toText(mobileCell.getNumericCellValue()));
	break;
case BLANK:
	break;
default:
	break;
}
Source by roytuts.com #
 
PREVIOUS NEXT
Tagged: #Deal #empty #blank #cell #excel #file #apache #poi
ADD COMMENT
Topic
Name
7+8 =