在日历项目中工作,使用iText生成pdf并打印约会。 我可以画出有科斯帕的单元格和有罗森的单元格,但不能把它组合起来。 表的宽度为4个单元格。 我想实现这样的目标。
((a ) (b ) ) (c ) ) )。
((d ) (e ) ) (c ) ) )。
因此,(1,1 ),2 )和) 2,1 ),2,2 )是普通细胞,但应该有1个覆盖(1,3 ),1,4 ),2,3 )和(2,4 )的细胞,因此2个sp sssp
当前代码:
pdfptabletable=newpdfptable(4; pdfpcellcell=newpdfpcell (new phrase (“1,1”); (细胞; cell=newpdfpcell (new phrase (“1,2”); (细胞; pdfpcellcell 23=newpdfpcell (new phrase (“multi 1,3 and 1,4”); Cell23.setColspan(2; Cell23.setRowspan(2; table.addcell(cell23; cell=newpdfpcell (new phrase (“2,1”); (细胞; cell=newpdfpcell (new phrase (“2,2”); (细胞; //3和2,4应该被填补。 1,3包括rowspan 2和colspan 2. //table.completeRow (; //没有效果
但是发生了错误:
exception converter:Java.io.io exception :文档中没有页面。
如果我没有开始创建第二行,那只是(只画了一行,) 1,3 )的单元格中有2个科斯。 Rowspan )无效,因为没有第二行。 谢谢你的帮助。 谢谢你。