Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"C:\Program Files\Adobe\Reader 9.0"

Status
Not open for further replies.

LoveOpnSrc

Programmer
Feb 6, 2008
14
US
Hi

Can someone tell me to check for this path
Code:
 "C:\Program Files\Adobe\Reader 9.0"
?

I am have real issues with adobe reader 9 and what my logic to do something different, but first I have to what what version it is, can anyone help?

Thanks!!!
 
Not that's funny! I was thinking about doing the exact thing.

LoveOpnSrc, what exactly are you asking here? Are you asking how to dynamically check the version of Adobe Acrobat by looking in Program Files?

Or are you just wondering what version of Adobe Acrobat you have?

More specifics would be nice.
 
Dan that was Good ...

Sorry, I want a way to be dynamic to check for adobe versions. Believe it or not in Corp. America, some still use Adobe 8.0 so my code breaks when a user access my pdf's. But with the inception of Adobe 9.0 in July, now the pdf's are broke for 9, if I remove my fix for 8 it works in 9.... see my issue here. and when I try to check version it always tells me 7 which does work :( either....

Thanks!!!
 
So basically I have this code (js) in a .asp file. but it always returns 7 is there another way to determine 8, 8.1.2, or 9.0?
Code:
else if (window.ActiveXObject)
{
    for (x=2; x<10; x++)
    {
        // To Detect older Acrobat Versions 6 -
        try
        {
            oAcro=eval("new ActiveXObject('PDF.PdfCtrl."+x+"');");
            if (oAcro)
            {
                acrobat.installed=true;
                acrobat.version=x+'.0';
            }
        }
        catch(e) {}
    }

    // To Detect older Acrobat Versions 6 -
    try
    {
        oAcro4=new ActiveXObject('PDF.PdfCtrl.1');
        if (oAcro4)
        {
            acrobat.installed=true;
            acrobat.version='4.0';
        }
    }
    catch(e) {}
    
    // To Detect Acrobat Version 7 +
    try
    {
        bAcrobatVer7 = new ActiveXObject("AcroPDF.PDF.1");
        if (bAcrobatVer7)
        {
            acrobat.installed=true;
            acrobat.version="7.0";
        }
    }
    catch(e) {}
}
 
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top