Using an Computed Field (iFrame) to Show a Locally Stored File PDF

Using an Computed Field (iFrame) to Show a Locally Stored File PDF

Anonymous
Not applicable
2,981 Views
4 Replies
Message 1 of 5

Using an Computed Field (iFrame) to Show a Locally Stored File PDF

Anonymous
Not applicable

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?

0 Likes
Accepted solutions (1)
2,982 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable

When I inspect the element of the ifram here's what I see:

 

2013-07-23_1317.png

0 Likes
Message 3 of 5

Anonymous
Not applicable

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.

0 Likes
Message 4 of 5

bastien.mazeran
Autodesk Support
Autodesk Support

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,



Bastien Mazeran

Technical Support Specialist

Message 5 of 5

Anonymous
Not applicable
Accepted solution

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!