CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2000
    Location
    Holland
    Posts
    14

    Execute PDF file

    I have created a textbox with a word in it. When I click with the mouse on it, I want to see a PDF-file in Adobe Acrobat Reader. Therefor Acrobat Reader has to start automaticly with the desired file.(Like Windows Explorer double click)
    How can I do this?
    Please give me some code
    Thanks



  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Execute PDF file

    use the ShellExecute API and pass the path to the PDF file as argument 3. This will start Acrobat reader if it is correctly installed.



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

Featured