Hello,
I'm having a similar problem with the script code in InfoPath:
var objWS = new ActiveXObject("WScript.Shell");
var myDocFolder = objWS.SpecialFolders("MyDocuments");
I've updated the Intranet security settings to enable non-signed ActiveX controls, but still get the Automation error. Any other suggestions?
thanks,
Jake
Quote:
quote:Originally posted by spolacsek
Hi,
I have a form on which I would like to have a list of links to external documents. These documents may be word, pdf, jpg and other files.
I have tried using the hyperlink control with a file reference, i.e.:
file:///c:\myfile.doc, but I get 'access denied'.
I have also tried using javascript:
var WshShell = new ActiveXObject("WScript.Shell");
var oExec = WshShell.Run("c:\\myfile.doc");
This works in preview, but in published form I get 'Automation server can't create object'
Does this have something to do with the form trust? Does anyone have any ideas how I could have a simple link to an external file?
Thanks,
Sean.
|
jake