Windows 7 64 bit FORUM

mdah

Distinguished
Dec 23, 2011
1
0
18,510
0
I have a windows 7 64test bit professional os. I installed adobe reader X. I need to test asp.net apps with various settings of adobe reader.
Checking and unchecking of "display pdf browser"(under edit->preference->internet) is not working consistently.

Steps to reproduce the issued

1. Installed the adobe X and in a html page ran the pdf plugin detect test
in html page onload i had the following javascript---it is able to detect the pdf version

2. Opened the adobe X and unchecked 'display pdf browser'. plugin detect failed. went back to adobe X and found that 'display pdf browser' is checked(eventhough I did not change it). Now the plugin detect fails.

Currently I am installing and uninstalling the adobe x to fix this issue. Which takes really long time. How can I fix this?

var isInstalled = false;
var version = null;
if (window.ActiveXObject) {
var control = null;
try {
// AcroPDF.PDF is used by version 7 and later
control = new ActiveXObject('AcroPDF.PDF');
} catch (e) {
// Do nothing
}
if (!control) {
try {
// PDF.PdfCtrl is used by version 6 and earlier
control = new ActiveXObject('PDF.PdfCtrl');
} catch (e) {
return;
}
}
if (control) {
isInstalled = true;
version = control.GetVersions().split(',');
version = version[0].split('=');
version = parseFloat(version[1]);
}
} else {
// Check navigator.plugins for "Adobe Acrobat" or "Adobe PDF Plug-in"*
}



 
Thread starter Similar threads Forum Replies Date
David___Only Apps General Discussion 0
KloneCSGO Apps General Discussion 2
W Apps General Discussion 1
N Apps General Discussion 2
S Apps General Discussion 4
K Apps General Discussion 1
P Apps General Discussion 1
R Apps General Discussion 4
M Apps General Discussion 1
kikani.kautik Apps General Discussion 2
K Apps General Discussion 3
Z Apps General Discussion 8
O Apps General Discussion 2
M Apps General Discussion 6
E Apps General Discussion 10
Y Apps General Discussion 1
F Apps General Discussion 4
Paul Wagenseil Apps General Discussion 2
L Apps General Discussion 1
G Apps General Discussion 2

ASK THE COMMUNITY