Closed GoogleCodeExporter closed 8 years ago
thanks a lot for your contribution!
I am on holidays and can't look at this now properly.
just a quick question: could you achieve the same if you use the current String
method:
tbl.addTableEle(TableEle.TD, Paragraph.with("* Arthur
Friedenreich").create().getContent(), "1329", "Brazil");
because the "getContent()" returns the XML string that represents the
paragraph. You can do the same approach to add Images or other elements inside
a Table.
HAve a think about it. Maybe I didn't document this properly but java2word is
supposed to be like a Composite design pattern where you add elements inside
other elements.
If someone wants to add images inside a table, we would have to create another
methods to accept Image as parameter. This is what we don't want...
Let me know what you think.
Thanks for your code! I really appreciate. Java2word has been built with
contribution from many people like you, keen to help and get involved.
cheers
Leonardo Correa
Original comment by leonardo...@gmail.com
on 27 Jan 2012 at 4:18
Thanks for replying so quickly, but I had already done this way and the result
was not expected. The problem is that the result has more characters than
necessary.
thanks again
Fabio
Original comment by fabiocor...@gmail.com
on 27 Jan 2012 at 11:47
Take a look at:
http://code.google.com/p/java2word/source/browse/trunk/java2word/src/main/java/w
ord/w2004/elements/Table.java
I added a overloaded method to receive a Paragraph as parameter.
It will be deployed on a JAR version 3.1 today.
thanks
Leonardo
Original comment by leonardo...@gmail.com
on 2 Feb 2012 at 2:01
Original comment by leonardo...@gmail.com
on 2 Feb 2012 at 12:32
Original issue reported on code.google.com by
fabiocor...@gmail.com
on 27 Jan 2012 at 12:01