These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Calling an External EXE from javascript

s.arunswami
Registered: Aug 20 2008
Posts: 8

Hi,

Is there a possibility to access an external DLL or Exe or a Batch file atleast,from the javascript.
I want to send the active document path to the EXE from the javascript whenever the user clicks on the menu item created by javascript.
the exe eventually performs a Database operation.

I have the following code , which causes an internal error

function Test()
{
var a = new ActiveXObject("DOCArchiver.Archiver");
var valor = a.test(2);
alert(valor);
}

However this works when , embedded inside HTML

Thanks in anticipation for your assistance; greatly appreciated

Regards
Arun S

My Product Information:
Acrobat Standard 9.0, Windows
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
No, not with JavaScript. Maybe with a custom plug-in.

However, since you want to interact with a database, you should see if ADBC can give you what you need.

George
s.arunswami
Registered: Aug 20 2008
Posts: 8
Thank you- What am trying to acheive is to save the PDF file to SQL server .
I have a DLL which can insert a PDF document to SQL Server. I intend using that DLL.

I use Adobe Reader. Please can you let me know if InterApp Communication will be of any use here?

Thanks for your assistance.

Regards
Arun S
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
So, is it your goal to allow a Reader user to select a menu item while viewing a PDF, and have that PDF file stored in a database? Is the PDF a form that needs to be saved before storing?

George
s.arunswami
Registered: Aug 20 2008
Posts: 8
The PDF does not have any forms, I want to save the entire file in SQL server 2005,Just a sort of archiving.

Thanks for your assistance..

Regards
Arun