Table table = new Table(2, 3);
table.setBorderWidth(0f);
Cell cell = new Cell(“test”);
cell.setBorder(0);
table.addCell(cell); 这样是有效果的吧,没有边框。
table.setBorderWidth(0f);
Cell cell = new Cell(“test”);
cell.setBorder(0);
table.addCell(cell); 这样是有效果的吧,没有边框。
解决方案 »
- SSH整合中的一个分页显示,大家帮看看用什么方案
- 请教jsp调用matlab函数???
- java连接access数据库咋会连不上?
- 发布jsp 项目的问题
- JSP如何对外发布
- 关于apache+tomcat+ssl问题
- 关于JavaBean的一个问题
- 孙卫琴老师例子的一行代码报错
- 怎样对邮件列表进行分页处理,急啊!(分不够再加!!!!明天之前就散分)
- 我想问问大家在做web开发时都是怎么使用自己的开发机和测试服务器的?
- 奇怪,为什么我用jdk自带的native2ascii.exe转换中文,网页依然显示乱码?反而用百度的在线工具转换的unicode却正确?难道jdk中的程序有问题
- ibatis中一个带有排序的sql,用queryForMap执行sql
不行的。。我试过了。。算了。不行那是你没有使用好,那么多人用就你自己不行?我已经说过多次了,我解决问题,不是想得分。
Document document = new Document(PageSize.A4);
RtfWriter2.getInstance(document, new FileOutputStream(
"D:/test/word.doc"));
document.open();
Table table = new Table(2, 3);
table.setBorderWidth(4f);
table.setAlignment(2);
int[] widths = { 200, 100 };
table.setWidths(widths);
Cell cell = new Cell("test");
cell.setBorder(0);
table.addCell(cell);
document.add(table);
document.close();
//对应下图1 Document document = new Document(PageSize.A4);
RtfWriter2.getInstance(document, new FileOutputStream(
"D:/test/word.doc"));
document.open();
Table table = new Table(2, 3);
table.setBorderWidth(0f);
table.setAlignment(2);
int[] widths = { 200, 100 };
table.setWidths(widths);
Cell cell = new Cell("test");
cell.setBorder(0);
table.addCell(cell);
document.add(table);
document.close();
//对应下图2
图一
图二图二你看到边框了?还是自己用这个测试代码看看。