Indigo Rose Software

Professional Software Development Tools

 
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 24
  1. #1
    Join Date
    Oct 2005
    Posts
    11

    Accessing Pdf Files With Acrobat Reader Via Cd

    I try to access multiple pdf files using acrobat reader on my cd without any interference on the acrobat reader on my system. I noticed that whenever I opened one of the pdf files, and I try to open another only the previous pdf file always appear. what did i do wrong. Anyone with useful ideas. Thanks

  2. #2
    Join Date
    May 2005
    Posts
    1,115
    Did you try using Foxit Reader instead of Acrobat Reader? Works much better, faster and cleaner.
    Never know what life is gonna throw at you.
    (Based on a true story.)

  3. #3
    Join Date
    Oct 2005
    Posts
    11
    I tried using Foxit Reader but all the same , I used the following Script.

    ComboBox Properties:ComboBox1

    on select

    01 ---get selected
    02 selected = ComboBox.GetSelected("ComboBox1");
    03 path_short = File.GetShortName(_SourceFolder);
    04 File.Open ("AutoPlay\\Foxit\\Reader.exe", "\\AutoPlay\\Files\\Open_PDF", SW_MAXIMIZE, false);

    I used above script to access multiple pdf files, but only the reader opened not the files. Please help. Thanks

  4. #4
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843
    You should use File.Run instead:

    Suppose you have all your PDF docs in the Docs folder and the Reader in the Foxit Directory under Autoplay, you should use the following:

    01 selected = ComboBox.GetSelected("ComboBox1");--names of PDF files in the ComboBox
    02 File.Run ("AutoPlay\\Foxit\\Reader.exe", "AutoPlay\\Docs\\"..selected, "C:\\Temp", SW_MAXIMIZE, true);-- will open ONE file in the reader at a time

    Good luck

    Yossi

  5. #5
    Join Date
    May 2005
    Posts
    1,115
    Yeah and also add command line switch -NoRegister to the File.Run Command so that Foxit doesn't ask about file associations.
    Never know what life is gonna throw at you.
    (Based on a true story.)

  6. #6
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    Remember, Foxit Reader is free for non-commercial use. (from their Website)
    Intrigued

  7. #7
    Join Date
    Oct 2005
    Posts
    11
    Thanks Yossi, but I am lost, I would love it if I could get a demonstration. Anyone with Examples please.

  8. #8
    Join Date
    Jan 2002
    Location
    Nashville TN
    Posts
    328
    Big problem you have is that you cant select more than a single item with a combo box you might want to change to a Listbox if you want the users to beable to open more than a single PDF, "combobox only let you SELECT a single item".

    But code should look something like this:
    PHP Code:
    -- "selected" is the number of the item the users selected
    -- "selected_txt" is the text of that item (I assume its file names)  you use use the ComboBox.GetItemData and store file names in it,  and more user friendly names for the Text
    -- path_short assumed that the pdf files are soo the _SourceFolder "\\AutoPlay\\Files\\Open_PDF\\

    ---get selected
    selected = ComboBox.GetSelected("
    ComboBox1");  --Returns a number of the selected item
    selected_txt = ComboBox.GetItemText("
    ComboBox1", selected)  -- Used the selected number to get the text of that number ComboBox.GetItemData could be used to get the data
    path_short = File.GetShortName(_SourceFolder);
    --File.Open ("
    AutoPlayFoxitReader.exe", "AutoPlayFilesOpen_PDF", SW_MAXIMIZE, false);
    File.Open ("
    AutoPlayFoxitReader.exe", path_short.."AutoPlayFilesOpen_PDF"..selected_txt, SW_MAXIMIZE, false); 



    Listbox sample code

    PHP Code:
    Selected_ListBox ListBox.GetSelected("ListBox1")
    if 
    Selected_ListBox ~= nill then
        path_short 
    File.GetShortName(_SourceFolder);
        
    List_count Table.Count(Selected_ListBox)
        while 
    List_count do
        
    selected_txt ListBox.GetItemData("ListBox1"count)
        
    File.Open ("AutoPlay\\Foxit\\Reader.exe"path_short.."\\AutoPlay\\Files\\Open_PDF\\"..selected_txtSW_MAXIMIZEfalse);

        
    end
        lst_box 
    ListBox.GetCount("ListBox1")

    elseif 
    Selected_ListBox == nill then 
        Dialog
    .Message("Selected_ListBox","nil")
    end 

    Hopefully that gives you something to work with, I did not get a chance to run the code so I am sure there are little errors but that should give you a better idea.

    The while loop is incomplete, it needs a count = count - 1 I would store the file names in the data and use the text to display a nice user frendly name for the end user. If you need more help let me know if I have time I can work up a better example.
    Last edited by Jason Pate; 04-17-2006 at 05:12 PM.

  9. #9
    Join Date
    Oct 2005
    Posts
    11
    Jason Pate, thanks for the hints. I am working on it, looking forward for best examples, preferrably the tested and working ones.

  10. #10
    Join Date
    Jan 2002
    Location
    Nashville TN
    Posts
    328
    Upload your project file or email it to me .

  11. #11
    Join Date
    Oct 2005
    Posts
    11

    Accessing Pdf Files With Acrobat Reader Via Cd

    Back again! anybody with usefull examples (apz) about how to Accessing Pdf Files With Acrobat Reader or foxit reader Via Cd.

  12. #12
    Join Date
    May 2004
    Location
    Belgium
    Posts
    129

    Wink Is this what you mean

    Found this info in the How do I ... section for AMS 6

    http://www.indigorose.com/webhelp/am...the_CD-ROM.htm

    I've tried this once with acrobat 5, end worked perfectly

  13. #13
    Join Date
    Oct 2005
    Posts
    11
    Thanks johnraus, I want something like this. But apz that can open many pdf files not single file. The link gives example of single file.

  14. #14
    Join Date
    Apr 2005
    Location
    In Wonderworld
    Posts
    246
    This will load 3 PDFs on same action , if you want more to load at the same time just put more benif each one


    Code:
    path_short = File.GetShortName(_SourceFolder);
    File.Run("C:\\Program Files\\Adobe\\Acrobat 7.0\\Reader\\AcroRd32.exe", path_short .. "\\AutoPlay\\Docs\\pdf1.pdf", "", SW_SHOWNORMAL, false);
    File.Run("C:\\Program Files\\Adobe\\Acrobat 7.0\\Reader\\AcroRd32.exe", path_short .. "\\AutoPlay\\Docs\\pdf2.pdf", "", SW_SHOWNORMAL, false);
    File.Run("C:\\Program Files\\Adobe\\Acrobat 7.0\\Reader\\AcroRd32.exe", path_short .. "\\AutoPlay\\Docs\\pdf3.pdf", "", SW_SHOWNORMAL, false);
    for cd
    Code:
    path_short = File.GetShortName(_SourceFolder);
    File.Run("Acrobat 7.0\\Reader\\AcroRd32.exe", path_short .. "\\AutoPlay\\Docs\\pdf1.pdf", "", SW_SHOWNORMAL, false);
    File.Run("Acrobat 7.0\\Reader\\AcroRd32.exe", path_short .. "\\AutoPlay\\Docs\\pdf2.pdf", "", SW_SHOWNORMAL, false);
    File.Run("Acrobat 7.0\\Reader\\AcroRd32.exe", path_short .. "\\AutoPlay\\Docs\\pdf3.pdf", "", SW_SHOWNORMAL, false);
    Last edited by Wonderboy; 04-22-2006 at 06:36 PM.

  15. #15
    Join Date
    Oct 2005
    Posts
    11
    That is possible but my files are close to 6,000 files so it is going to take time and space to list them all. That is the more reason why the use of listbox or combobox is neccessary but i do not know how to go about it.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Running and Detecting Acrobat
    By morci in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 01-04-2006, 07:30 AM
  2. Acrobat Version Checking Script
    By eric_darling in forum AutoPlay Media Studio 4.0
    Replies: 20
    Last Post: 10-03-2003, 04:41 PM
  3. Running Adobe Acrobat Reader Directly from the CD-ROM
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-26-2003, 09:22 AM
  4. Running Acrobat Reader 6.0 from a CD
    By McGargle in forum AutoPlay Media Studio 4.0
    Replies: 0
    Last Post: 06-24-2003, 10:29 AM

Posting Permissions

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