+ Reply to Thread
Results 1 to 6 of 6

Identifying version of Adobe Reader

  1. #1
    Andrew
    Guest

    Identifying version of Adobe Reader

    Hi,

    I have written some code that will open a pdf file using the following code:

    Shell "C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe " &
    File_To_Open1, vbNormalFocus

    This works fine if the user has the same version as me (5.0) but I found
    that many users in this company have different versions.

    Can I get the version from the Registry (and if so how)?

    I also thought about looking at my directories and finding the Adobe folder
    but thought this is an untidy method..

    I got around this by capturing the error if 5.0 couldn't be found which
    worked until I found a version 6.0 CE. I got around this but putting the
    following code in:

    If The_Ver = "6.0" Then The_Ver = "6.0 CE"

    I don't want to keep having to create these get-arounds. Is there an easier
    way???

    I am also lead to believe you don't need to put the version in but I haven't
    been able to get to work.

    Any ideas?





    --
    Andrew

  2. #2
    Zoo
    Guest

    Re: Identifying version of Adobe Reader

    Something like this?

    Version =
    createobject("wscript.shell").regread("HKCR\AcroExch.App\AcrobatVersion\")


    "Andrew" <Andrew@discussions.microsoft.com> wrote in message
    news:6B7E04A2-D3EC-4EDE-B7EB-E2D38C6BF030@microsoft.com...
    > Hi,
    >
    > I have written some code that will open a pdf file using the following

    code:
    >
    > Shell "C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe " &
    > File_To_Open1, vbNormalFocus
    >
    > This works fine if the user has the same version as me (5.0) but I found
    > that many users in this company have different versions.
    >
    > Can I get the version from the Registry (and if so how)?
    >
    > I also thought about looking at my directories and finding the Adobe

    folder
    > but thought this is an untidy method..
    >
    > I got around this by capturing the error if 5.0 couldn't be found which
    > worked until I found a version 6.0 CE. I got around this but putting the
    > following code in:
    >
    > If The_Ver = "6.0" Then The_Ver = "6.0 CE"
    >
    > I don't want to keep having to create these get-arounds. Is there an

    easier
    > way???
    >
    > I am also lead to believe you don't need to put the version in but I

    haven't
    > been able to get to work.
    >
    > Any ideas?
    >
    >
    >
    >
    >
    > --
    > Andrew



  3. #3
    Andrew
    Guest

    Re: Identifying version of Adobe Reader

    Hi Zoo,

    Thanks for helping but I get the following error (I have no idea what this
    means...)

    Run-time error '-2147024894 (80070002)':

    Invalid root in registry key 'HKCR\AcroExch.App\AcrobatVersion\".



    --
    Andrew


    "Zoo" wrote:

    > Something like this?
    >
    > Version =
    > createobject("wscript.shell").regread("HKCR\AcroExch.App\AcrobatVersion\")
    >
    >
    > "Andrew" <Andrew@discussions.microsoft.com> wrote in message
    > news:6B7E04A2-D3EC-4EDE-B7EB-E2D38C6BF030@microsoft.com...
    > > Hi,
    > >
    > > I have written some code that will open a pdf file using the following

    > code:
    > >
    > > Shell "C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe " &
    > > File_To_Open1, vbNormalFocus
    > >
    > > This works fine if the user has the same version as me (5.0) but I found
    > > that many users in this company have different versions.
    > >
    > > Can I get the version from the Registry (and if so how)?
    > >
    > > I also thought about looking at my directories and finding the Adobe

    > folder
    > > but thought this is an untidy method..
    > >
    > > I got around this by capturing the error if 5.0 couldn't be found which
    > > worked until I found a version 6.0 CE. I got around this but putting the
    > > following code in:
    > >
    > > If The_Ver = "6.0" Then The_Ver = "6.0 CE"
    > >
    > > I don't want to keep having to create these get-arounds. Is there an

    > easier
    > > way???
    > >
    > > I am also lead to believe you don't need to put the version in but I

    > haven't
    > > been able to get to work.
    > >
    > > Any ideas?
    > >
    > >
    > >
    > >
    > >
    > > --
    > > Andrew

    >
    >


  4. #4
    Zoo
    Guest

    Re: Identifying version of Adobe Reader

    How about this?
    createobject("wscript.shell").regread("HKCR\AcroExch.Document\AcrobatVersion
    \")

    "Andrew" <Andrew@discussions.microsoft.com> wrote in message
    news:3C5E1C6C-C853-43D0-B139-DAA50924E3DB@microsoft.com...
    > Hi Zoo,
    >
    > Thanks for helping but I get the following error (I have no idea what this
    > means...)
    >
    > Run-time error '-2147024894 (80070002)':
    >
    > Invalid root in registry key 'HKCR\AcroExch.App\AcrobatVersion\".
    >
    >
    >
    > --
    > Andrew
    >
    >
    > "Zoo" wrote:
    >
    > > Something like this?
    > >
    > > Version =
    > >

    createobject("wscript.shell").regread("HKCR\AcroExch.App\AcrobatVersion\")
    > >
    > >
    > > "Andrew" <Andrew@discussions.microsoft.com> wrote in message
    > > news:6B7E04A2-D3EC-4EDE-B7EB-E2D38C6BF030@microsoft.com...
    > > > Hi,
    > > >
    > > > I have written some code that will open a pdf file using the following

    > > code:
    > > >
    > > > Shell "C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe " &
    > > > File_To_Open1, vbNormalFocus
    > > >
    > > > This works fine if the user has the same version as me (5.0) but I

    found
    > > > that many users in this company have different versions.
    > > >
    > > > Can I get the version from the Registry (and if so how)?
    > > >
    > > > I also thought about looking at my directories and finding the Adobe

    > > folder
    > > > but thought this is an untidy method..
    > > >
    > > > I got around this by capturing the error if 5.0 couldn't be found

    which
    > > > worked until I found a version 6.0 CE. I got around this but putting

    the
    > > > following code in:
    > > >
    > > > If The_Ver = "6.0" Then The_Ver = "6.0 CE"
    > > >
    > > > I don't want to keep having to create these get-arounds. Is there an

    > > easier
    > > > way???
    > > >
    > > > I am also lead to believe you don't need to put the version in but I

    > > haven't
    > > > been able to get to work.
    > > >
    > > > Any ideas?
    > > >
    > > >
    > > >
    > > >
    > > >
    > > > --
    > > > Andrew

    > >
    > >



  5. #5
    Andrew
    Guest

    Re: Identifying version of Adobe Reader

    Bingo!!

    Thanks mate

    --
    Andrew


    "Zoo" wrote:

    > How about this?
    > createobject("wscript.shell").regread("HKCR\AcroExch.Document\AcrobatVersion
    > \")
    >
    > "Andrew" <Andrew@discussions.microsoft.com> wrote in message
    > news:3C5E1C6C-C853-43D0-B139-DAA50924E3DB@microsoft.com...
    > > Hi Zoo,
    > >
    > > Thanks for helping but I get the following error (I have no idea what this
    > > means...)
    > >
    > > Run-time error '-2147024894 (80070002)':
    > >
    > > Invalid root in registry key 'HKCR\AcroExch.App\AcrobatVersion\".
    > >
    > >
    > >
    > > --
    > > Andrew
    > >
    > >
    > > "Zoo" wrote:
    > >
    > > > Something like this?
    > > >
    > > > Version =
    > > >

    > createobject("wscript.shell").regread("HKCR\AcroExch.App\AcrobatVersion\")
    > > >
    > > >
    > > > "Andrew" <Andrew@discussions.microsoft.com> wrote in message
    > > > news:6B7E04A2-D3EC-4EDE-B7EB-E2D38C6BF030@microsoft.com...
    > > > > Hi,
    > > > >
    > > > > I have written some code that will open a pdf file using the following
    > > > code:
    > > > >
    > > > > Shell "C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe " &
    > > > > File_To_Open1, vbNormalFocus
    > > > >
    > > > > This works fine if the user has the same version as me (5.0) but I

    > found
    > > > > that many users in this company have different versions.
    > > > >
    > > > > Can I get the version from the Registry (and if so how)?
    > > > >
    > > > > I also thought about looking at my directories and finding the Adobe
    > > > folder
    > > > > but thought this is an untidy method..
    > > > >
    > > > > I got around this by capturing the error if 5.0 couldn't be found

    > which
    > > > > worked until I found a version 6.0 CE. I got around this but putting

    > the
    > > > > following code in:
    > > > >
    > > > > If The_Ver = "6.0" Then The_Ver = "6.0 CE"
    > > > >
    > > > > I don't want to keep having to create these get-arounds. Is there an
    > > > easier
    > > > > way???
    > > > >
    > > > > I am also lead to believe you don't need to put the version in but I
    > > > haven't
    > > > > been able to get to work.
    > > > >
    > > > > Any ideas?
    > > > >
    > > > >
    > > > >
    > > > >
    > > > >
    > > > > --
    > > > > Andrew
    > > >
    > > >

    >
    >


  6. #6
    Zoo
    Guest

    Re: Identifying version of Adobe Reader

    This site may help you.(But the site is for Delphi)

    http://www.vincenzo.net/isxkb/module...article&sid=73

    "Andrew" <Andrew@discussions.microsoft.com> wrote in message
    news:3C5E1C6C-C853-43D0-B139-DAA50924E3DB@microsoft.com...
    > Hi Zoo,
    >
    > Thanks for helping but I get the following error (I have no idea what this
    > means...)
    >
    > Run-time error '-2147024894 (80070002)':
    >
    > Invalid root in registry key 'HKCR\AcroExch.App\AcrobatVersion\".
    >
    >
    >
    > --
    > Andrew
    >
    >
    > "Zoo" wrote:
    >
    > > Something like this?
    > >
    > > Version =
    > >

    createobject("wscript.shell").regread("HKCR\AcroExch.App\AcrobatVersion\")
    > >
    > >
    > > "Andrew" <Andrew@discussions.microsoft.com> wrote in message
    > > news:6B7E04A2-D3EC-4EDE-B7EB-E2D38C6BF030@microsoft.com...
    > > > Hi,
    > > >
    > > > I have written some code that will open a pdf file using the following

    > > code:
    > > >
    > > > Shell "C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe " &
    > > > File_To_Open1, vbNormalFocus
    > > >
    > > > This works fine if the user has the same version as me (5.0) but I

    found
    > > > that many users in this company have different versions.
    > > >
    > > > Can I get the version from the Registry (and if so how)?
    > > >
    > > > I also thought about looking at my directories and finding the Adobe

    > > folder
    > > > but thought this is an untidy method..
    > > >
    > > > I got around this by capturing the error if 5.0 couldn't be found

    which
    > > > worked until I found a version 6.0 CE. I got around this but putting

    the
    > > > following code in:
    > > >
    > > > If The_Ver = "6.0" Then The_Ver = "6.0 CE"
    > > >
    > > > I don't want to keep having to create these get-arounds. Is there an

    > > easier
    > > > way???
    > > >
    > > > I am also lead to believe you don't need to put the version in but I

    > > haven't
    > > > been able to get to work.
    > > >
    > > > Any ideas?
    > > >
    > > >
    > > >
    > > >
    > > >
    > > > --
    > > > Andrew

    > >
    > >



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1