home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / acroweb.zip / ACRORUN.DOC < prev    next >
Text File  |  1995-05-09  |  2KB  |  50 lines

  1.  
  2.  
  3. ┌───────────────────────────────────────────────────────────────────────────┐
  4. │ Date: 05-09-95, 21:32                  Number: 17                         │
  5. │ From: Dave Looney                       Refer: 725                        │
  6. │   To: charles slater                    Recvd: No                         │
  7. │ Subj: Web Explorer won't launch          Conf: Comp.Os.Os2.               │
  8. └───────────────────────────────────────────────────────────────────────────┘
  9. Charles,
  10.  
  11. cs> Has anyone tried to launch Adobe Acrobat Reader from Web 
  12. cs> Explorer. 
  13.  
  14. I no of no way to start a windows program in enhanced mode with ATM
  15. running from the command line.  If Acrobat (win version) is run before
  16. WebExplorer, a separate session with the wrong settings will still be
  17. called. 
  18.  
  19. A hack to allow calling of Acrobat via REXX scripts follows.  A
  20. desktop object for acroread.exe with proper settings and a unique
  21. objectid is created by the first.  A second script passes the temp
  22. filespec from WebExplorer to the WPS object by updating the program
  23. object parameters field, and then opening the WPS object.  
  24.  
  25. Acrobat must be restarted each time a new file is viewed (slow), and
  26. the REXX command window must remain open long enough for Acrobat to
  27. load the file --- else WebExplorer deletes the temporary .PDF file on
  28. return from the command !  If the command window is closed while the
  29. file is still loaded, the temp file will not be deleted by WebExplorer,
  30. which will see the file locked by another process.
  31.  
  32. ACROMAKE.CMD: Creates Adobe Acrobat Object.  Edit this script with 'E' or
  33. tedit to replace 'c:\acroread\acroread.exe' with whatever filespec is 
  34. appropriate for your system.  Run this command to create the WPS object.
  35.  
  36. ACRORUN.CMD: Calls the WPS object to view .pdf files. You will need to
  37. setup the mime type in your MAILCAP file. To create the association edit 
  38. your EXPLORE.INI file to create a mailcap file (I use 'usr_cap') and 
  39. associate the script with pdf images with an entry in the mailcap file 
  40. (e.g. 'image/pdf ; c:\acroread\acrorun.cmd %s', or something 
  41. on that order).  Follow the directions and format given in the examples
  42. in EXPLORE.INI and you'll be fine.
  43.  
  44. It works, but its ugly.  Suggestions please.
  45.  
  46. Dave Looney
  47. [Team OS/2]
  48.  
  49. DJLOON@delphi.com   75246.3364@compuserve.com
  50.