function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jack123Jack123 

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
User-added image

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>
Jack123Jack123
What I understood is my Image which I have added on Document is not accessible outside salesforce even when External available check box is checked.
when I try to add some random image url from google then it worked 
 
AbhishekAbhishek (Salesforce Developers) 
It's great that you have found the solution.

Please mark it as the best answer so that we can keep the community clear.


Regards,
Salesforce support.
Jack123Jack123
Hi Abhishek,

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