Solved

How to detect if client has Acrobat Reader from aspx file?

Posted on 2004-09-03
6
712 Views
Last Modified: 2012-08-14
Hi all,

I have an aspx page, from which I would like to detect if the client has Acrobat Reader installed, and which version. How can I do this?

Also, if Acrobat Reader has been detected, and the PDF file is opened in the browser, is there a way for me to choose which Acrobat Reader toolbars are shown?

Thanks.
0
Comment
Question by:Otana
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 17

Expert Comment

by:AerosSaga
ID: 11972640
You will have to use javascript:

property pDefaultDocDir

on new (me)  
   pDefaultDocDir = "Files"
 return me    
end  

on OpenFile me , p_FileType , p_Dir , p_FileName
 set FileToOpen = the moviePath & pDefaultDocDir  & "\" &  p_Dir & "\" & p_FileName  
 -- Open the FileType
 if (p_FileType = "PDF") then
   me.StartAcrobat ( FileToOpen )
 end if
end OpenFile

--Acrobat File opening
on StartAcrobat me, p_PDFFile  
  if ( baFileExists( p_PDFFile ) = 1 )  then -- check if file exists
   set AcroExe = baFindApp( "pdf" ) -- see if acrobat is installed
   if AcroExe <> "" then -- if they have acrobat and the file exists
     baOpenFile(  p_PDFFile , "Maximised" ) -- open the file
   else --
     alert("You do not have Adobe Acrobat installed")
   end if  
 end if
end StartAcrobat

http://www.sitepoint.com/article/flash-director-mx-2004/2

Regards,

Aeros
0
 
LVL 8

Expert Comment

by:shovavnik
ID: 11973311
I believe the only way to specify which toolbars are available are from within the pdf file.
0
 
LVL 11

Author Comment

by:Otana
ID: 11987756
Isn't there a way to do it using C#? I'm trying to avoid miwing languages as much as possible.
0
 
LVL 17

Accepted Solution

by:
AerosSaga earned 300 total points
ID: 11988767
in short NO you will need a client side script.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question