Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to install adobe in client machine through asp application

Posted on 2004-10-31
25
Medium Priority
?
291 Views
Last Modified: 2013-12-16
hi iam abu
                    iam using asp and sql server.i my project i want to view some documents in acrobat reader.so if the enduser doesnt have acrobat reader i should give him a link to my sever path where i have acrobat exe .And on clicking the link acrobat reader must be installed in the client machine.so how to  do this.plz give some source code if u have
0
Comment
Question by:abunectar
[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
  • 14
  • 8
25 Comments
 
LVL 33

Expert Comment

by:sajuks
ID: 12461141
not easily done, there are a few options.

1> requires the client to agree to say yes to activex run

<SCRIPT LANGUAGE="Javascript">
<!--
//Credit to DeCojutepeque
// detection for Netscape
var useAcrobat = navigator.mimeTypes &&
navigator.mimeTypes["application/pdf"]
//-->
</SCRIPT>
...
<SCRIPT LANGUAGE="VBScript">
<!--
   on error resume next
   useAcrobat = not IsNull(CreateObject("AcroExch.Document"))
   '                can be CreateObject("PDF.PdfCtrl.1") too!
//-->
</SCRIPT>

<SCRIPT>
<!--
   if (useAcrobat)
      document.write("Acrobat reader ok");
   else
      document.write("Acrobat reader not found");
//-->
</SCRIPT>

if acrobat reader is found thgen you dont've to worry.

2.Best and preferred option,
On your webpage give the link to download the acrobat setup and state explicitly that it needs
adobe to be installed.
0
 
LVL 33

Expert Comment

by:sajuks
ID: 12461148
abunectar are you still stuck at the previous question that you'd posted ?
Would be a nice idea to clean up all old posts.. makes the other experts happier :-)
(i being one of them )
0
 
LVL 1

Author Comment

by:abunectar
ID: 12470544
sajuks i have accepted ur previous answer.but iam stuck up since u have given me partial o/p.any way ur code for acrobat reader is not working.see my project is intranet project.as u say i can give link to the user.but net cannot be available to all user.so i will be having the exe in the server.and if any one click the link a message has to be prompted whether to download or not.if yes it has to be downloaded from the server
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 33

Expert Comment

by:sajuks
ID: 12470882
My first option will work then. Have you incroporated taht idea?
0
 
LVL 1

Author Comment

by:abunectar
ID: 12471137
sajuks
            iam having acrobat installed in my sytem.and when i execute ur code i says that acrobat is not found .
0
 
LVL 33

Expert Comment

by:sajuks
ID: 12471186
did you check for both ?
 useAcrobat = not IsNull(CreateObject("AcroExch.Document"))
or
 useAcrobat = not IsNull(CreateObject("PDF.PdfCtrl.1") )
0
 
LVL 33

Expert Comment

by:sajuks
ID: 12471216
Whcih version are you using for acrobat ? i tested in two m/cs one having full acrobat installed ( 6) and the other having
adobe reader (6) both places its working
0
 
LVL 1

Author Comment

by:abunectar
ID: 12480406
i am having acrobat reader which i downloaded from the net.only the exe.i  un installed the previous version which i had in my system and i checked with ur code.i just showed a message acrobat not found.and i didnt even prompt me to install.then i installed the exe.after that also it is prmopting me that abobe is not found.
0
 
LVL 33

Expert Comment

by:sajuks
ID: 12480412
can u post your code. also whats your operating system ?i dont 've access to windows 98 so 'vnt checked in that.
0
 
LVL 1

Author Comment

by:abunectar
ID: 12480425
i have win2000 os . i just pasted ur  first code in html and checked in preview.it is always showing that adobe is not found
0
 
LVL 33

Expert Comment

by:sajuks
ID: 12480447
i've checked my code in four different w2k server,2 w2k prof and one winxp m/c. Its working in all.
All machines have got ie6 sp1 and above,. also tested in firefox .
They all show working. have you copied my code as it is or 've you done any changes.
0
 
LVL 33

Expert Comment

by:sajuks
ID: 12480455
save the code as an html page and then view it. What tool are you using for preview ?
0
 
LVL 1

Author Comment

by:abunectar
ID: 12480492
iam using front page for previewing.
i copied this code
<SCRIPT LANGUAGE="Javascript">
<!--
//Credit to DeCojutepeque
// detection for Netscape
var useAcrobat = navigator.mimeTypes &&
navigator.mimeTypes["application/pdf"]
//-->
</SCRIPT>
...
<SCRIPT LANGUAGE="VBScript">
<!--
   on error resume next
   useAcrobat = not IsNull(CreateObject("AcroExch.Document"))
   '                can be CreateObject("PDF.PdfCtrl.1") too!
//-->
</SCRIPT>

<SCRIPT>
<!--
   if (useAcrobat)
      document.write("Acrobat reader ok");
   else
      document.write("Acrobat reader not found");
//-->
</SCRIPT>
i didnt do any changes.iam having acrobat in my syetem.but it is prompting that acrobat is not found.pl review the code once again
thanks
abu
0
 
LVL 33

Expert Comment

by:sajuks
ID: 12480520
checked in frontpage -2003 still working :-(
go to run > regedit.
do a find for AcroExch.Document
check or the data , uncheck the other two (keys and values)
0
 
LVL 33

Expert Comment

by:sajuks
ID: 12480527
forget the above, go to
regedit > HKEY_LOCAL_MACHINE\Software\CLASSES\.pdf
What is the default value that you see ?
0
 
LVL 1

Author Comment

by:abunectar
ID: 12480541
registry vslues
name -(default)
type-reg_sz
data-(value not set)
0
 
LVL 33

Expert Comment

by:sajuks
ID: 12480557
Havent you associated acrobat with pdf files ? Did you try opening pdf files and see if it opens in pdf ?

try this,
for default set the data as AcroExch.Document
add a string value of Content Type with data as application/pdf.
See if that works
0
 
LVL 1

Author Comment

by:abunectar
ID: 12480572
sajuks after giving the value it works.but how can i ask the client to edit the registry.
0
 
LVL 33

Expert Comment

by:sajuks
ID: 12480585
I wonder whether the problem was a error in installation in your machine.Can you check this in some other machine?
As i said I tried over here and its working fine.
Thats the only option available to you if you wasnt to check client side as far as i know. The other option being optn no 2
which i'd stated in my first post, trust the user ;-)
0
 
LVL 33

Expert Comment

by:sajuks
ID: 12480631
Chec kthe scripts at http://www.dithered.com/javascript/acrobat.html.
More precise and better . That should work for all cases
0
 
LVL 1

Author Comment

by:abunectar
ID: 12480689
sajuks ur code is only working in the server and it is not working in client machine.i checked it.
0
 
LVL 33

Accepted Solution

by:
sajuks earned 300 total points
ID: 12480735
check http://www.dithered.com/javascript/acrobat.html , that  should be the ideal one.
forget the above script.
0

Featured Post

Looking for a new Web Host?

Lunarpages' assortment of hosting products and solutions ensure a perfect fit for anyone looking to get their vision or products to market. Our award winning customer support and 30-day money back guarantee show the pride we take in being the industry's premier MSP.

Question has a verified solution.

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

Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

597 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