Open GoogleCodeExporter opened 8 years ago
I think you can add a breakline anywhere.
try to do a breakline.getContent(), get the return of this method and add
inside a table cell. I think I tried this long time ago and worked. Pls let us
know how you go.
You can do the same with other elements. The method getContent() return the XML
string that represents the element. Most elements will accept this string.
That's why java2word was designed based on Composite pattern (or something
similar).
Leonardo
Original comment by leonardo...@gmail.com
on 22 Sep 2011 at 12:43
Alright, the breakline works with plain text.
Guess I was too much by trying to format my text with different styles using
ParagraphPiece in the table =)
Original comment by twinks...@gmail.com
on 3 Oct 2011 at 6:19
[deleted comment]
Hi,
I used Breakline I can remove the space at the beginning but the format of the
paragraph piece is getting changed.
tbl.addTableEle(TableEle.TD, Paragraph.withPieces(ParagraphPiece.with(BreakLine.times(1).create()+"Project Overview:").withStyle().bold().create()).getContent(),"");
This is how I used Leonardo but I am losing the bold property of the text.
Thanks,
Phani
Original comment by phanindr...@gmail.com
on 13 Oct 2011 at 2:14
Hey Phani,
I tried this using Breakline in Table Element. But it didn't work. It's returning something like this
word.w2004.elements.BreakLine@13e205fProject Overview:
Original comment by yashwant...@gmail.com
on 1 Jan 2013 at 6:50
Original issue reported on code.google.com by
twinks...@gmail.com
on 18 Sep 2011 at 6:35