Results 1 to 2 of 2

Thread: path

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Posts
    76

    Post

    Try ShellExecute PDF file name u have
    Dont give the Acrobat reader directory and stuff

    I think i tried with text file it opened in Notepad
    so i think it will do the same for acrobat

  2. #2
    Addicted Member jcouture100's Avatar
    Join Date
    Aug 1999
    Posts
    141

    Post

    This information is obsolete.

    You will only be able to open the PDF file if the Acrobat executible is in the searchable path for the computer. Notepad is generally in the C:\Windows directory (which is part of your path) so you can open the text file via the .TXT association with Notepad. Unfortunately, Acrobat is usually not installed in this manner, that is why you would need to specify the full path to the Acrobat executible to open the .PDF File.

    There is another possibility and that is making the PDF.OCX control part of your app so your app contains its own PDF reader. The PDF.OCX Control is a free download from Adobe. The plus side of this is that you can still view the .PDF file even if the user doesn't have Acrobat installed. The downside of this is that each PC you want to run your app on will need the PDF.OCX file installed / registered.

    You can also use an API call to find the Acrobat reader executible and then dynamically supply the path to the shell command for calling Acrobat.

    If your interested in implementing the PDF.OCX option and can't find the file on Adobe's site, just e-mail me and I'll send it to you.

    Edited by jcouture100 on 03-14-2000 at 05:34 PM
    Last edited by jcouture100; Apr 25th, 2025 at 11:17 AM. Reason: Outdated and removing PII.
    JC

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width