I want to display image by Img tag HTML in Word Document tem

Posted by tanagorns@progress.in.th on 23-Apr-2015 23:48

Hi there!!

In Rollbase Private cloud . I use version 3.1.3. 

I'm use rbv_api.selectQuery API and I'm get  image HTML tag after that I try insert img tag but not work.


P.S. I want to display image in Word Document template without TOKEN.

Thanks for answer

Best regards
Boy

Posted by Pradeep Kagithalagudem on 27-Apr-2015 00:32

Hi,

I think you are trying to render html image tag in word document like below

<img src='http://localhost:8080/storage/servlet/Image?c=7609&fileName=tmp_8447273561578042359.png&contentType=image%2Fpng' style='' border='0' align='absmiddle'/>

For this you have to create a formula field to store html img tag and use that field value ( {!img_tag#value} ) token in word document template. This will render img tag in word document.


Thanks and Regards

Pradeep

All Replies

Posted by Godfrey Sorita on 24-Apr-2015 09:00
If there is a way to display images in Word Document templates using URL, then this is possible. Otherwise you need use find a way to relate the tokens to the object. Out of curiosity, why use selectQuery instead of tokens?
Posted by pvorobie on 24-Apr-2015 11:41

I don't know if Word can display images using URL.

In Rollbase you can insert images in Word document using template tokens for Image fields.

Posted by Pradeep Kagithalagudem on 27-Apr-2015 00:32

Hi,

I think you are trying to render html image tag in word document like below

<img src='http://localhost:8080/storage/servlet/Image?c=7609&fileName=tmp_8447273561578042359.png&contentType=image%2Fpng' style='' border='0' align='absmiddle'/>

For this you have to create a formula field to store html img tag and use that field value ( {!img_tag#value} ) token in word document template. This will render img tag in word document.


Thanks and Regards

Pradeep

This thread is closed