Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

display iframe with pdf document localized in hard disk

(0) ShareShare
ReportReport
Posted on by 179

hi everyone

i have question : i have a pdf document in my C:/ , i want to display it in the crm form.

when i  put url in src attribut , it works  but when i put the phisical path  the pdf docmuent was not dispayed in the body form.

this is the webressource called from Iframe: 

<html><head><meta><meta><meta><meta><meta><meta><meta><meta><meta></head><body style="word-wrap: break-word;">

<form enctype="multipart/form-data" name="mon_form" method="post" action="upload">
<input type="file" name="upload_fichier">
</form>

<iframe src="research.google.com/.../44678.pdf" width="800" align="middle" height="600"></iframe> ( OK)

// <iframe src="C:\file\test.pdf" width="800" align="middle" height="600"></iframe> ( KO)

</body></html>

thank you in advance.

Regards

*This post is locked for comments

  • Suggested answer
    Temmy Wahyu Raharjo Profile Picture
    Temmy Wahyu Raharjo 2,914 on at
    RE: display iframe with pdf document localized in hard disk

    Common strategy for this requirements is to make the entity as activity. Then the pdf we attached as an annotation that have attachment. Your requirements is to expensive because you need to sent the file to the user local drive, and need to setting the browser (install adobe/something) to display in the IFrame.

  • Suggested answer
    Flydancer Profile Picture
    Flydancer 1,332 on at
    RE: display iframe with pdf document localized in hard disk

    When you say 'physical path' I assume you mean on the 'client side'.

    If this is the case you can try using "file:///C:/test.pdf" in the iframe src. It will depend on the browser/plugin/settings if this will work or not, since the file:/// prefix tends to throw security warnings for some people.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans