1 Reply Latest reply on May 9, 2014 12:54 AM by philmcgeehan

    Open PDF

    mdscarpa

      Title

      Open PDF

      Post

      A field in one of my tables contains order numbers. I have PDF's with order specifics saved by (order number).pdf. I want to place a button on the layout which will open the PDF file related to that order. I have tried many different approaches to no avail. 

      My closest attempt involves using OpenURL, I set it as - file win:/Z:/Files/Folder/WK/PO PDF/"& WK::OrderNumber & ".pdf"

      I then execute the script and when I preform it with dialog the correct path comes up in the box, but when I press OK nothing happens. If I copy and paste the link out of that box into IE it will work though so I know the link is right. IE is my default browser and I have disabled Pop up blocker for what that was worth.

      I am running FM13 and IE 11 on Windows 7 Pro.

      Thanks for any suggestions in advance.

        • 1. Re: Open PDF
          philmcgeehan

               I use OpenURL to open my PDFs based on the container they are referenced in.

               The URL i use is calculated from the container, it is in this format:

               X:/Folder/Folder/File name here.pdf

               and it works fine. Try removing the part before your drive letter.