You need to sign in to do that
Don't have an account?

Image not displaying on MS Doc when VF page is renders as Doc Type
Hi Everyone
I have one Vf page which I am displaying as MS Doc using content type as Ms Doc.
Everything is working fine execpt for one thing that I add one logo on header but Its not displaying Logo image instead its showing some error
I have tried all the approach like using static resource or adding the image on document, tried everthing but still its not displaying image
See the error screen shot

Here is the code for all the approaches I tried
<div style='mso-element:header' >
<p class="MsoHeader" style="text-align:right;">
Header Content
<img src="{!URLFOR($Resource.LOGOImage)}" style="float:right;" width="50" height="50"/>
<apex:image url="{!$Resource.LOGOImage}" width="50" height="50"/>"
<apex:image url="MyDomain/servlet/servlet.ImageServer?id=recordID&oid=orgid&lastMod=SomeID" style="float:right;" width="132" height="65"/>
<img src="MyDomain/servlet/servlet.ImageServer?id=recordID&oid=orgid&lastMod=SomeID" style="float:right;" width="132" height="65"/>
</p>
</div>
I have one Vf page which I am displaying as MS Doc using content type as Ms Doc.
Everything is working fine execpt for one thing that I add one logo on header but Its not displaying Logo image instead its showing some error
I have tried all the approach like using static resource or adding the image on document, tried everthing but still its not displaying image
See the error screen shot
Here is the code for all the approaches I tried
<div style='mso-element:header' >
<p class="MsoHeader" style="text-align:right;">
Header Content
<img src="{!URLFOR($Resource.LOGOImage)}" style="float:right;" width="50" height="50"/>
<apex:image url="{!$Resource.LOGOImage}" width="50" height="50"/>"
<apex:image url="MyDomain/servlet/servlet.ImageServer?id=recordID&oid=orgid&lastMod=SomeID" style="float:right;" width="132" height="65"/>
<img src="MyDomain/servlet/servlet.ImageServer?id=recordID&oid=orgid&lastMod=SomeID" style="float:right;" width="132" height="65"/>
</p>
</div>
when I try to add some random image url from google then it worked
Please mark it as the best answer so that we can keep the community clear.
Regards,
Salesforce support.
Thanks for the reply but I am saying that this is what my understanding is but I still did not get the solution for this error
Regards
Jack