[OfficeUtils] Image inside word template doesnt work

Forge Component
(26)
Published on 2017-04-26 by Elena Novozhilova
26 votes
Published on 2017-04-26 by Elena Novozhilova

Hi,


The component works great, can replace placeholder with a text or image etc.


However, seems like when I have images inside the Template document, it always return corrupted after process, regardless how I place that images the word template.
It has no issues when I used the action to put that image in the placeholder.

Thing is our template is customisable on run-time, so user might add/move/change some image inside the template document. Somehow always have issue when we had image added inside the template.

Any Idea?

Wisnu Aji wrote:

Hi Bruno/Elena,


The component works great, can replace placeholder with a text or image etc.


However, seems like when I have images inside the Template document, it always return corrupted after process, regardless how I place that images the word template.
It has no issues when I used the action to put that image in the placeholder.

Thing is our template is customisable on run-time, so user might add/move/change some image inside the template document. Somehow always have issue when we had image added inside the template.

Any Idea?

Hi Wisnu, 

Can you please send me the document with image that get corrupted, so I can check what is going on?

Best regards, 

Elena.


Hi Elena,

Attached is a sample, some we have on header, some we have inside the content.
Somehow it could not open in my Office Word after process. 

Regards,

Aji

Hi Elena,

Found the work around.
Its related with how I anchor the Images.
Not sure in Ms. Office but in Libre Office I just anchor it as character, It works regardless where I put image (paragraph, header, table etc).

Hope this will help you to add necessary code to handle those anchor issues.


Regards,

Aji