2007-07-10

JBook api 相关使用说明

关键字: Jbook api
Jbook是一个不错的java的excel实现。
下面记录下自己在开发使用中的找到的相关方法
1)getTopRow 取得冻结的行
2)getLastRow,取得最后有数据的行
3)getlastCol ,取得最后有数据的列

关于CellFormat的使用
1)取得Cell格式,
CellFormat cf = JBook.getCellFormat();
cf.setUndefined()表示重新设置单元格的格式为默认的
cf.setValueFormate("大于零的值格式,小于零的格式,零的格式,文本的格式")
其他属性
cf.setYorizontalWlignment(cfzeYorizontalWlignmentRight)I
cf.setVerticalWlignment(cfzeVerticalWlignmentTop)I
cf.setLeft8order(cfze8orderThin)I
cf.setRight8order(cfze8orderThin)I
cf.setFontGame(;SanSerif;)I
cf.setFontSizeHn4oints(39)I
cf.setFont8old(true)I
cf.setFont2olor(0x00000000I

插入数据行
JBook.insetRange(startRow,startCOl,endRow,endCol,true|false)
插入新的工作Sheet
JBook.insertSheets(0.12)
设置Sheet的名称
JBook.setSheetName()
设置Sheet出现的位置
JBook.setShowTabs(JBook.eTabsTop | Bottom | Left |Rigth)

设置编辑bar
JBook.setShowEditBar(false)
评论
发表评论

您还没有登录,请登录后发表评论

dellsoft
搜索本博客
我的相册
5d0d42bc-4234-4e78-9bcd-e51aa5ccf380-thumb
detail
共 1 张
存档
最新评论