通达信公式转换JAVA
用Excel公式实现文本转Java输出文本的问题
public class Excel {
private jxl.Workbook rwb = null;
/**
* 得到当前工作薄的总列数
*
* @parma sheetIndex 工作薄号
* @return int
*/
public int getColCount(int sheetIndex) {
int colCnt = 0;
try {
jxl.Sheet rs = rwb.getSheet(sheetIndex);
colCnt = rs.getColumns();
} catch (Exception e) {
colCnt = 0;
} finally {
try {
} catch (Exception e) {
colCnt = 0;
}
}
return colCnt;
}
/**
* 得到当前工作薄的总行数
*
* @parma sheetIndex 工作薄号
* @return i