Hi,
I'm trying to show a PDF file from my network in an iframe. I'm getting close but not yet successful.
Currently my iframe looks like this:
'<iframe> width="1000" height="1000" frameborder="0" scrolling="yes" marginheight="0" marginwidth="0" src="file:///\\<server>\<folder path>\<filename>.pdf"</iframe>'
If copy and paste file:///\\<server>\<folder path>\<filename>.pdf into Chrome it works fine (Chrome converts the path to file://xx%20yy/ etc).
I tried using an @ like src@"file:/// (etc.) but only saw the mystery guy.
Any ideas?
Solved! Go to Solution.
UPDATE:
I tried just using a URL field to get to the file on disk but that didn't work either. The odd this is my URL looked like this:
file:///\\<server>\etc
But when I hover over the URL the target displayed at the bottom (in Chrome) is:
file////<server>\etc
It appears that the colon gets truncated server side which alters the target.
Hi,
Could you perhaps consider installing Microsoft IIS web server on one of your local server and create a new "Documents" folder under c:\inetpub\wwwroot to store your PDF files? This way you would access the PDF file via http://<iis web server name>/Documents/<pdf filename>.pdf instead of using file:// command.
You will need to enable directory browsing in IIS for your Documents web folder.
Regards,
I was finally able to get a hyperlink to open a local file.
My final solution was to:
In Chrome:
Install an extension for using local links: https://chrome.google.com/extensions/detail/jllpkdkcdjndhggodimiphkghogcpida
In IE9:
Add PLM 360 tenant URL to my trusted sites and local intranet.
I'm going to assume this will work also for an iframe.
Cheers!