G
G. Tarazi
An ActiveX control might be unsafe
How can I disable the "An ActiveX control might be unsafe . " message when I am running the InfoPath automation? Isn't InfoPath is a sand box and safe by default? Can I mark the jscrip in the web page as safe in anyway?
This is the code triggering the problem: its a java script in a web page, and trigared on load.
// Reference the InfoPath application module.
var IpApp = new ActiveXObject("InfoPath.Application");
var IpDocuments = IpApp.XDocuments;
// Open the document.
var IpDocument = IpDocuments.NewFromSolution(p_formTemplate);
var loadFromWs = IpDocument.DOM.selectSingleNode("/ipdoc:IxSystem/ipdoc:LoadFromWs");
// And pass the values.
loadFromWs .text = "true";
How can I disable the "An ActiveX control might be unsafe . " message when I am running the InfoPath automation? Isn't InfoPath is a sand box and safe by default? Can I mark the jscrip in the web page as safe in anyway?
This is the code triggering the problem: its a java script in a web page, and trigared on load.
// Reference the InfoPath application module.
var IpApp = new ActiveXObject("InfoPath.Application");
var IpDocuments = IpApp.XDocuments;
// Open the document.
var IpDocument = IpDocuments.NewFromSolution(p_formTemplate);
var loadFromWs = IpDocument.DOM.selectSingleNode("/ipdoc:IxSystem/ipdoc:LoadFromWs");
// And pass the values.
loadFromWs .text = "true";