Page 1 of 1

How to find if dopdf is installed via javascript

Posted: Wed Nov 06, 2013 10:30 am
by Srikanth
Hi ,

i am basically trying to find if dopdf is installed in the system if its not then i am prompting the user to doenload the dopdf.

Is there a way i can detect if dopdf is installed in the system via javascript.Its possible to do it for flash player using activex object.is something similar can be done for dopdf too?

Any suggestion will be really helpful

Regards,
Srikanth

Re: How to find if dopdf is installed via javascript

Posted: Fri Nov 08, 2013 7:58 pm
by AngusSF-LC
Look for this registry key?

Code: Select all

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\doPDF 7 printer_is1]

Re: How to find if dopdf is installed via javascript

Posted: Fri Nov 08, 2013 8:32 pm
by Srikanth
Can the printers be accessed via javascript?

Re: How to find if dopdf is installed via javascript

Posted: Mon Nov 11, 2013 11:49 am
by Srikanth
Hi ,

I tried it but i got following error,

Unable to open registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\doPDF 7 printer_is1" for reading.

below is the code,

var shell = new ActiveXObject("WScript.Shell");

var regValue = shell.RegRead("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\doPDF 7 printer_is1");

Re: How to find if dopdf is installed via javascript

Posted: Thu Nov 21, 2013 8:25 am
by Claudiu (Softland)
You cannot access printer properties from Javascript, thus it's very difficult to develop something that is accurate and works. The easiest approach is to write directly on the page a notice for users to install doPDF if they don't have it already.