We are using Salesforce Chatter Document Previewer to view files.

Code in VF page:

    <embed src="/_swf/190003/sfc/flex/DocViewer.swf"
           width="100%" style="height:100vh;" align="middle" id="renditionLarge" 
           quality="high" bgcolor="#f3f3f3" name="renditionLarge" 
           allowscriptaccess="sameDomain" allowfullscreen="true" 
           type="application/x-shockwave-flash" />

The document is not appearing right away. We are getting the message

Processing File


Processing file (Refresh)

Sometimes we have to refresh up to 20 times to be able to view the document. And other times it takes only one refresh.

Any solution to this issue? The users don't like that they have to refresh to be able to view the document.


Instead of contentID use RecordID(or Document Version ID). It worked for me.

| improve this answer | |
  • contentId is actually the record Id. I just named the variable as 'contentId'. This is an old issue. Got it sorted. Thanks for replying anyway. – N.. Nov 19 '17 at 16:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.