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)
下面记录下自己在开发使用中的找到的相关方法
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)
发表评论
- 浏览: 15899 次
- 性别:

- 来自: 济南

- 详细资料
搜索本博客
我的相册
detail
共 1 张
共 1 张
最新评论
-
grails 根据数据库自动生 ...
不错,不知道实践结果感觉如何,呵呵
-- by casephoen -
grails 导出 excel
你确认在你的controller中定义这个XlsExportService 吗 ...
-- by dellsoft -
grails 导出 excel
不能执行:java.lang.NullPointerException: Can ...
-- by ourfirebird -
jsecurity 资料
一直在关注中,其基于pojo的特性还是很诱人的.
-- by agile_boy -
extjs dwr spring
谢谢,学习,学习
-- by fang_qi






评论排行榜