StimVinsh / xdocreport

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

Image interpretation in header and footer doesn't work #70

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. set an image to be replaced at runtime in header or footer
2. interprete doc with velocity engine

What is the expected output? What do you see instead?
In place of the image is set a "pic not available" flag

What version of the product are you using? On what operating system?
0.94, win 7 pro 32b, java 1.6.0_26

Please provide any additional information below.
works fine in text body

nothing more, thanks! =)

Original issue reported on code.google.com by yoplaitd...@gmail.com on 23 Jan 2012 at 2:20

GoogleCodeExporter commented 8 years ago
Hi,

Ok I will see the problem as soon as I have time.
Could you just attache your docx with the problem please and your Java context.
Thanks.

Regards Angelo

Original comment by angelo.z...@gmail.com on 23 Jan 2012 at 2:31

GoogleCodeExporter commented 8 years ago

Original comment by angelo.z...@gmail.com on 23 Jan 2012 at 2:31

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I will send a sample doc with the problem.

What do you mean/want to know of "java context", you mean method where I 
configure Image provider?

Original comment by yoplaitd...@gmail.com on 23 Jan 2012 at 7:09

GoogleCodeExporter commented 8 years ago
here are my elements:
SixthExemple.docx is the template
DocxProjectWithVelocity_Out6.docx is the result
And my java class with it.

Sorry for the delay, lot of work those days ;-)

Original comment by yoplaitd...@gmail.com on 25 Jan 2012 at 9:39

Attachments:

GoogleCodeExporter commented 8 years ago
Hi,

Thank's for your attached document. For the moment I have not time to study 
your problem (I'm working on text styling features+tools). I will do that when 
I will have time.

Regards Angelo

Original comment by angelo.z...@gmail.com on 25 Jan 2012 at 9:52

GoogleCodeExporter commented 8 years ago
np, i'll keep an eye :)

thx

Original comment by yoplaitd...@gmail.com on 26 Jan 2012 at 4:24

GoogleCodeExporter commented 8 years ago
Hi,

I'm getting the same problem. You could show me the way to fix this problem? I 
am developing a software and need this fix to finish the projet. 

Thx,
Vinicius

Original comment by vinicius...@gmail.com on 29 Jan 2012 at 7:46

GoogleCodeExporter commented 8 years ago
Hi, 

I have fixed the problem in the Git repository. Problem occured too with 
Hyperlink (RelationShipt like image). Could you test please if it's OK with 
your context?
This fix will be available in the XDOcReport 0.9.5 (see 
http://code.google.com/p/xdocreport/wiki/XDocReport095).

Regards Angelo

Original comment by angelo.z...@gmail.com on 30 Jan 2012 at 8:50

GoogleCodeExporter commented 8 years ago
It works!

Thx,

Original comment by vinicius...@gmail.com on 31 Jan 2012 at 3:36

GoogleCodeExporter commented 8 years ago
Thanks for the work Angelo !

Original comment by yoplaitd...@gmail.com on 1 Feb 2012 at 7:27

GoogleCodeExporter commented 8 years ago
You are welcome!

Ok I fix this bug.

Regards Angelo

Original comment by angelo.z...@gmail.com on 1 Feb 2012 at 8:31

GoogleCodeExporter commented 8 years ago
I'm afraid this issue isn't completely fixed.
In attachment I add a file demonstrating the problem.
abcdef.docx contains 2 images in the header, 2 in the body and 2 in the footer.
I also added six bookmarks : a, b, c, d, e, f.
After running the attached code I see that :
- only the first image in the header is correctly replaced
- only the first in the body
- only the first in the footer
To test this attachment, you can simply unzip it to the default package and run 
it.

Kind regards and thank you for this nice project.

Original comment by mario.cl...@gmail.com on 4 Feb 2012 at 8:50

Attachments:

GoogleCodeExporter commented 8 years ago
Hey, 
please disregard my last post.
Apparently the bookmarks overlapped in the xml:
<w:bookmarkStart w:id="3" w:name="b"/>
<w:bookmarkEnd w:id="2"/>
By adding a word or a space in between, the problem disappeared.

Sorry, and thanks again.

Original comment by mario.cl...@gmail.com on 4 Feb 2012 at 9:08

Attachments: