ERROR:參照IndexOutOfBoundsException異常是不明確的
參照IndexOutOfBoundsException異常是模糊的,在java.lang中com.sun.star.lang和類java.lang.IndexOutOfBoundsException兩個類com.sun.star.lang.IndexOutOfBoundsException比賽
CODE:
public void insertIntoCell(int CellX, int CellY, String theValue,
XSpreadsheet TT1,
String flag) throws IndexOutOfBoundsException {
XCell oCell = null;
oCell = TT1.getCellByPosition(CellX, CellY);
if (flag.equals("V")) {
oCell.setValue((new Float(theValue)).floatValue());
} else {
if (theValue!=null && theValue.length()>0 && theValue.length()!=0) {
oCell.setFormula("'"+(String)theValue.toString());
} else {
oCell.setFormula((String)theValue.toString());
}
}
}