Jump to content
Sign in to follow this  
das

Using Webviewer with pdf files stored on a server

Recommended Posts

Hi,

Am trying to set up a database that stores reports on a OSX server. The database will be shared using FMS9 and be accessed by clients using either XP or OSX. Have been trying to find ways of displaying the pdf files on the webviewer but to no avail thus far. Any thoughts to a man slowly going crazy on this subject!!

Thanks!

Share this post


Link to post
Share on other sites

Not 100% sure on a mac, but it would be something similar to putting in the network path to the document.

file:NETWORKPATHYourPDF.pdf

Share this post


Link to post
Share on other sites

Thanks for the tip. Seems to work on XP based machines but not yet on OSX. Guess there must be some things missing. Thanks again!

Share this post


Link to post
Share on other sites

I think you've got one too many slashes. Also, you need "Volumes" (like a POSIX path). This works for me:

file:///Volumes/manavesh/Pictures/factory orderform.pdf

or

/Volumes/manavesh/Pictures/factory orderform.pdf

Share this post


Link to post
Share on other sites

In addition, he's using back-slashes which should only work in UNC paths. URLs should be using forward-slashes.

Share this post


Link to post
Share on other sites

Hi,

I am working on window platform, but something I tried might be useful for Mac as well.

I would make a folder to burn on the CD or DVD say "Files" and dump the pdf files in there. I would even put the fm file in that same folder as well.

For the path in the field for the pdf file, I would make it to take the first letter of the drive from the command "Get(Filepath)"

that would give you file:/x:/files/fmfile.fp7

and add that to Left(Get(FilePath);9) would give you file:/x:/

Where x is the dive letter.

You can just add the filename field at the end like

Left(Get(FilePath);9)&"files/"&filename

Just link the webviewer to that fullpath field and it will show you the pdf in the field.

file:/d:/files/filename.pdf

If the Cd drive is F, x will be F, just make sure the fullpath field is a calculation field and in the option of the calculation, do not store the calculation results and the calculation result should be text.

hope that help.

regards,

Sam

Edited by Guest

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.