CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 4/11/2007 5:49:37 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 170 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
karnan
Asp.Net User
Detect adobe reader installed in C#.net page load4/11/2007 5:49:37 AM

0/0

Detect adobe reader installed in C#.net page load . I have to show the client a message in page load and save the value in database(ie. whether adobe is installed or not).I have a problem if i use hidden field and javascript . I am unable to get javascript return value in hidden field in page load.

If i use _doPostBack("hidAcrobat","1"); the page get refreshed.

Can anybody suggest regarding this...

Thanks,

Karnan.S

 

 

 

 

eshwar
Asp.Net User
Re: Detect adobe reader installed in C#.net page load4/11/2007 10:35:13 AM

0/0

 

 Hai,

  Just use this piece of javascript function code to detect Acrobat reader. This code gives the version of acrobat also. Just alert the acrobat.installed variable to the client user which solves your problem.

 
<script language="javascript">

function detectAcrobat()

{
var acrobat=new Object();

acrobat.installed=false;
acrobat.version='0.0';

if (navigator.plugins && navigator.plugins.length)
{
for ( var x = 0, l = navigator.plugins.length; x < l; ++x )
{
if (navigator.plugins[x].description.indexOf('Adobe Acrobat') != -1)
{
acrobat.version=parseFloat(navigator.plugins[x].description.split('Version ')[1]);

if (acrobat.version.toString().length == 1) acrobat.version+='.0';

acrobat.installed=true;
break;
}
}
}
else if (window.ActiveXObject)
{
for (x=2; x<10; x++)
{
try
{
oAcro=eval("new ActiveXObject('PDF.PdfCtrl."+x+"');");
if (oAcro)
{
acrobat.installed=true;
acrobat.version=x+'.0';
}
}
catch(e) {}
}

try
{
oAcro4=new ActiveXObject('PDF.PdfCtrl.1');
if (oAcro4)
{
acrobat.installed=true;
acrobat.version='4.0';
}
}
catch(e) {}

try
{
oAcro7=new ActiveXObject('AcroPDF.PDF.1');
if (oAcro7)
{
acrobat.installed=true;
acrobat.version='7.0';
}
}
catch(e) {}

}
alert(acrobat.installed);
alert(acrobat.version);

}
</script>
 

 I hope this could solver your problem....

Thanks,

eshwar.
 


My Dream is to be in your Dreams...
http://eshwar123.blogspot.com
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Detect adobe reader installed in C#.net page load - ASP.NET Forums Detect adobe reader installed in C#.net page load . I have to show the client a message in page load and save the value in database(ie. ...
PDF won't load + Flash player 9 won't downoad? - CNET Windows XP ... I have already tried to "detect and repair" in the help section of Adobe Reader. I uninstalled, then re-installed version 7.08 rebooted multiple times and ...
Browser won't load ads/pictures - CNET Browsers Forums Internet Explorer may display a blank page with a placeholder icon instead of displaying a Portable Document Format (.pdf) file with Adobe Acrobat Reader. ...
VB.net 2008 - Detect if adobe acrobat reader is installed on the ... VB.net 2008 - Detect if adobe acrobat reader is installed on the local machine .... Start("C:\somefile.pdf") to start the defualt PDF viewer/editor, ...
p2p.wrox.com Forums - detect if Adobe Acrobat Reader is installed NET and ASP > Classic ASP Beginners > detect if Adobe Acrobat Reader ... However , if Acrobat is not installed on a machine that this page is ...
Jonathan Hardwick : How to make Adobe Reader 7.0 load faster Like most other techies, whenever I install Adobe’s Acrobat Reader I also ... to speed up launch by causing virus detection software to precheck Acrobat. ...
How to detect long page loading times with Javascript Increase Safari's page loading speed 05/19/2004 10:30 AM Dave Hyatt made a post on his blog ..... cells 11/10/2003 11:16 PM CNET Asia Nov 10 2003 10:35PM ET ...
Adobe Reader - Reviews and free Adobe Reader downloads at Download.com Did you ever figure out why your Reader would not load? ... However, CNET Networks reserves the right to remove or refuse to post any submission for any ...
Cannot load windows! - Computing.Net By default it will install to C:\Program Files\Hijack This. ... O4 - Global Startup: Adobe Reader Speed Launch.lnk = C:\Program ...
InformIT: Silverlight 2 Unleashed, Adobe Reader - $31.99 Oct 8, 2008 ... Loading Scripts in a Web Page... 141. Understanding the Context. ..... Install Adobe™ Reader™ 6.x, 7.x, or the free Adobe™ Digital Editions ...




Search This Site:










html controls, html elements

a challenge problem, please give me some help

retrieving currently logged in user

advice needed for application

can't able to access a master page from a folder

error if getdisciplineid then

rename custom controls dll's or packed into one control

trust level in dnn 4

dnn.dom positioning error

master pages - javascript relative path problem

accessing active directory

treeview without codebehind

copy page with contents with text/html module bug

error on home page : insert statement conflicted with column foreign key constraint

copy local

pdf control?

how to write secure code against reflector tool?

login redirect not working

how do i execute search when the user hits the enter key (return)

print all properte values of class

flagging duplicate property in visual studio designer

need help on adding age tracking to registration form

fastest way to determine if a user is logged in? [asp.net 2.0]

dnn 2.0.4 load testing and caching issues?

msde + ms sql web data admin

some questions about visual web developer (vs2005)

is this the correct thinking for .net

beta 3 section or group name 'membership' already defined

implementing target on tab (link menu)

form authentication problem?

 
All Times Are GMT