我记得用DELPHI可以实现,用JAVA就不知道了。
解决方案 »
- j2ee方面,选择jdbc还是hibernate?
- 请教一个并发问题,servlet
- Weblogic无法启动?请教各位高手帮忙看下
- JCreator pro 4.5的注册码
- 关于邮件乱码问题
- 使用SpringMVC的J2ee项目在windows下可以访问,linux下无法访问url path
- 请推荐一款免费的消息中间件?
- Linux下的rmic出现如下编译错误,大家给看看。谢谢了,在Windows下命令行编译通过,并正常运行。
- 怎么在Filter中使用JTA控制事务???????只要能帮我解决分数随你要
- SSH2项目报空指针异常
- Struts将package我名字改了怎么就不好使用权了啊。???????
- 有没有谁熟悉java RMI?
format.setWrap(true);//自动换行//创建cell时
Label label = new Label(0,0,"XXXXXXXXXXXXXXXXXXXX",format);
应该直接打开Excel文件,在里面改变吧
呵呵
设好自动换行,然后设定这个列的宽度:WritableSheet的方法setColumnView(int 列序号,int 宽度)JXL的文档:public void setColumnView(int col,int width)
Sets the width of the column on this sheet, in characters. This causes Excel to resize the entire column. If the columns specified already has view information associated with it, then it is replaced by the new data Parameters:
col - the column to be formatted
width - the width of the column //注意这里的宽度是按字符数来算的