Open GoogleCodeExporter opened 8 years ago
you are not supposed to see any constructor.
This is how you should add elements to the document:
myDoc.addEle(Paragraph
.with("This doc has been generated by the unit test testJava2wordAllInOne() in the class DocumentTest2004Test.java.")
.create());
Take a read at Fluent Interfaces.
I don't know about ImageType. I can't find it in the code. This is how you add
images:
myDoc.addEle(Image
.from_WEB_URL("http://www.google.com/images/logos/ps_logo2.png")
.setHeight("40").setWidth("80").create());
It is all here: http://java2word.blogspot.com.au/p/all-in-one-example.html
Original comment by leonardo...@gmail.com
on 5 Jul 2012 at 11:43
Original issue reported on code.google.com by
sajawalj...@gmail.com
on 5 Jul 2012 at 2:42