Solved

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

Posted on 2004-09-03
6
697 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

758 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now