thuliobuarque / java2word

Automatically exported from code.google.com/p/java2word
0 stars 0 forks source link

Add image into word 2003 failed #75

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, 
 I add image into word . When i open file result.doc with msword 2007 Image is displayed. But with msword2003 Image disappear, only had [x]image.

 This is my code : 

body.addEle(Paragraph.with(""+Image.from_FULL_LOCAL_PATHL("c:/02.gif").getConten
t()).withStyle().align(word.w2004.style.ParagraphStyle.Align.CENTER).create());

Please help me solve this problem.

Thanks so much

(I do need to solve this issue urgently!)

Original issue reported on code.google.com by htngoc1...@gmail.com on 20 Dec 2011 at 3:52

GoogleCodeExporter commented 8 years ago

I am not really sure. It should work on any MSWord 2003+
I know that doesn't work on 2003<
Maybe 2003 supports WordML, which is the xml representation of the document but 
doesn't like 64base images. 

I guess there is no much we can do unless try different images and see if it 
display. 
Download this example 
http://java2word.googlecode.com/files/Java2word_allInOne_27-03-2011.doc, open 
on 2003 and see what happens with the images.

Original comment by leonardo...@gmail.com on 20 Dec 2011 at 4:55

GoogleCodeExporter commented 8 years ago
i downloaded file from 
 http://java2word.googlecode.com/files/Java2word_allInOne_27-03-2011.doc

but the image doesn't display.

Original comment by htngoc1...@gmail.com on 20 Dec 2011 at 7:03

GoogleCodeExporter commented 8 years ago
yeh Word 2003 is stuffed. Nothing we can do...

Original comment by leonardo...@gmail.com on 20 Dec 2011 at 12:57

GoogleCodeExporter commented 8 years ago
don't support w2004. Only 2004 plus

Original comment by leonardo...@gmail.com on 2 Feb 2012 at 12:30