Hi
Our company is upgrading our web application to support IE 11 and Edge. There is an ActiveX control that is part of the application. When the activex control initializes, we set a variable, ParentDOC, as type MSHTML.HTMLDocument to the usercontrol.parent.script.document. It has worked for years and the document type reported for both objects is "[object] HTMLDocument" As I am converting the code, e.g. changing document.all to document.getElementById, in debug mode everything works ok. However, when I make the ocx control and register it, the document type for UserControl.Parent.Script.Document is "[object] Document" not "[object] HTMLDocument" and I get a "Type Mismatch error." Does anyone have any idea why it would work in debug and not in production?
Thanks,
Lloyd Carter