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

Acrobat Standard 9 vs Acrobat Reader X - Java problem

PaPax
Registered: Aug 11 2011
Posts: 2
Answered

Hi,
sorry for my english.
I've created a form with AS9 in which a JavaScript send a message to an address specified in a field. Everything works fine if I use AS9 as a reader.
If I open the form with Acrobat X, when I press the button to send the message this error (in the JavaConsole) come out:
RaiseError: Uno dei destinatari specificati non è individuabile.
Doc.mailDoc:21:Field 5_@helpdesk:Mouse Down
===> Uno dei destinatari specificati non è individuabile.
 
The script is this :
 
var cToAddr = getField("0_emailrichiedente").value;var cSubLine = "Richiesta Credenziali: " +
this.getField("0_cognome").value +
" - " +
this.getField("0_nome").value;
var cBody = "Si prega. \n" +
"\n" +
"Cognome Utente: " +
this.getField("0_cognome").value + "\n" +
"Nome Utente: " +
this.getField("0_nome").value
 
this.mailDoc({bUI: true, cTo: cToAddr, cSubject: cSubLine, cMsg: cBody});
 
Any ideas?
Thank you very much in advance

My Product Information:
Acrobat Standard 9.4.3, Windows
maxwyss
Registered: Jul 25 2006
Posts: 255
Accepted Answer
You may have a closer look at the Acrobat JavaScript documentation, and there it states that maiDoc() requires extended rights in order to work in Reader.

Also, a little advice: it is strongly recommended to not use the MouseDown event for clicking (a button), but the MouseUp instead.

Hope this can help.

Max Wyss.

PaPax
Registered: Aug 11 2011
Posts: 2
Thank you very much for you help and suggestion.
Everything is now ok.