Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / April 2005

Tip: Looking for answers? Try searching our database.

To all MCP Is this a Infopath Bug  ??

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bart - 19 Apr 2005 06:39 GMT
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:\\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 are performing the write  operation. Does each Active
objects have its own permissions????.

one intresting thing to note is that when using ActiveX for MSXML the window
"Do you want enable Activex Controls or someting cant remember"  dosen't show
up in the infopath runtime.

Thanks In Advance
Bart
Brian Teutsch [MSFT] - 19 Apr 2005 17:59 GMT
This is not a bug. InfoPath does not allow the creation of arbitrary ActiveX
objects from script. Certain components are "safe for scripting", such as
the MSXML component. Most require that your *form* be full trust, regardless
of your permissions on the machine. There's lots of info in the SDK and the
newsgroup on creating full-trust forms.

Brian

> Hello,
>
[quoted text clipped - 29 lines]
> Thanks In Advance
> Bart
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.