Please Help ActiveX,Scripting.FileSystemObject,Msxml2.DOMDocument.

B

Bart

Hello,

infopath permission=DOMAIN
iam logged in as Administrator of the local machine.

in my sumbit method i created an Activex object

**********************************
var fso, f1;
fso = new ActiveXObject("Scripting.FileSystemObject");
f1 = fso.CreateTextFile("c:\\testfile.txt", true);

the file is being created in c:
***********************************
i change my code to the following and i get a permission denied error
*****************************************
var es = new ActiveXObject("Msxml2.DOMDocument.5.0");
es.load("c:\\Book1.xml");
es.save("c:\\InfopathXml\\book2.xml");
I get a permission denied error
*************************************
my question is both are Activex Objects why is infopath treating them in a
diffrent way, both of them are activex objects, and are performing the write
operation.

Thanks In Advance
Bart
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top