Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2005
    Posts
    1

    browse pdf and open it

    Hi,

    Hope anyone can help me with the following. I would like to browse a folder, select a pdf and open it with acrobat.

    Should be simple but can not make it work.

    Thanks for any help.

  2. #2
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Can you post the code you are currently using?
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  3. #3
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    One thing that always threw me was that the Dialog.FileBrowse action returns a table and not a string. So when you are opening your file make sure you reference the index for the file selected.

    Code:
    tbFiles = Dialog.FileBrowse(true, "Select PDF", Shell.GetFolder(SHF_MYDOCUMENTS), "Adobe PDF(*.pdf)|*.pdf| All Files(*.*)|*.*|", "", "", false, true);
    if tbFiles then
    	File.Open(tbFiles[1], "", SW_SHOWNORMAL);
    end
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  4. #4
    Join Date
    Nov 2003
    Location
    Salzburg / Austria
    Posts
    312
    Demo project with two solutions.


    Stefan_M


    Speedy Tigger was faster
    Attached Files
    "With a rubber duck, one's never alone."

    Douglas Adams, The Hitchhiker's Guide to the Galaxy

  5. #5
    Join Date
    Aug 2003
    Posts
    2,427
    One of the items on my list of things to do is to try and get to the bottom of why Acrobat Reader 7 is causing us problems with apparently broken associations. I can't for the life of me understand why Adobe imposed restrictions on including the reader on distributions.

    It used to be 100% reliable when you could run the executable from your own CD - now it's a real pain. I've started to avoid pdf's where I can.

Similar Threads

  1. Pdf doesn't open in default viewer
    By ellymae in forum AutoPlay Media Studio 4.0
    Replies: 1
    Last Post: 10-12-2004, 04:00 PM
  2. open pdf in Browser Object
    By Derek in forum AutoPlay Media Studio 4.0
    Replies: 15
    Last Post: 06-01-2003, 07:28 PM
  3. PDF Open to Bookmark
    By eleslie in forum AutoPlay Media Studio 4.0
    Replies: 2
    Last Post: 01-17-2003, 04:26 AM
  4. AMS4 Command Line to Open Password protected PDF
    By kpsmith in forum AutoPlay Media Studio 4.0
    Replies: 3
    Last Post: 11-19-2002, 04:18 PM
  5. Open PDF to fit in the viewer window?
    By Lub in forum AutoPlay Menu Studio 3.0
    Replies: 2
    Last Post: 03-07-2002, 11:25 PM

Posting Permissions

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