public static int getRowFreeze(Worksheet sheet) {
final PaneInformation pi = sheet.getPaneInformation();
return pi != null ? pi.getHorizontalSplitPosition() : 0;
}
public static int getColumnFreeze(Worksheet sheet) {
final PaneInformation pi = sheet.getPaneInformation();
return pi != null ? pi.getVerticalSplitPosition() : 0;
}