Products Technologies Demo Docs Blog Support Company

Using ActiveX Controls with the Latest MSIE Patch

In the last few weeks, there have been several articles, claiming that the latest Mircosoft patch for the Internet Explorer (released yesterday) will 'break' complete web pages and that Microsoft is going to say good bye to the ActiveX technology. One sentence in MSDN makes many people listen attentively: "Users cannot directly interact with Microsoft ActiveX controls loaded by the APPLET, EMBED, or OBJECT elements." Well, the situation is not that serious. It is correct that controls will…

Using ActiveX Controls with the Latest MSIE Patch

In the last few weeks, there have been several articles, claiming that the latest Mircosoft patch for the Internet Explorer (released yesterday) will 'break' complete web pages and that Microsoft is going to say good bye to the ActiveX technology. One sentence in MSDN makes many people listen attentively:

"Users cannot directly interact with Microsoft ActiveX controls loaded by the APPLET, EMBED, or OBJECT elements."

Well, the situation is not that serious.

It is correct that controls will be displayed in an 'inactive' mode so that the user cannot interact with them until they click on the control and confirm the activation by clicking 'OK' in a prompt. This is also valid for Flash animations or Quicktime movies, not only ActiveX controls, such as TX Text Control ActiveX.

The normal way to integrate TX Text Control ActiveX into an HTML page is the following using the OBJECT tag:

<html>
 <body>
   <object
      classid="clsid:ab949ac1-ec97-11d9-9e2b-004005a9abd2"
      id=objTX
      width=600
      height=400
     >
    </object>
 </body>
</html>

In this case, TX Text Control is made inactivate on startup and must be activated by clicking on the control. The following screenshot shows the tooltip that is displayed by Internet Explorer with the latest patch.

Screenshot

To avoid this activation, you can use Javascript to replace a DIV tag after the page has been loaded. By doing this, the ActiveX control must not be activated by the user.

<html>
 <head>
   <script src="script.js" language="JScript"></script>
 </head>

 <body>
   <div id="objTX">
      This DIV will be replaced with TX Text Control
   </div>
   <script language="JScript">
     CreateControl( "objTX",
                    "clsid:ab949ac1-ec97-11d9-9e2b-004005a9abd2",
                    "ObjTX", "600", "400")
   </script>
 </body>
</html>
function CreateControl(DivID, CLSID, ObjectID, WIDTH, HEIGHT)
{
    var d = document.getElementById(DivID);
    d.innerHTML = \'<object classid=\' + CLSID + \' id=\' + ObjectID + \' width=\' + WIDTH + \' height=\' + HEIGHT +\'>\';
}

This brings us to the reason why this patch changes the handling of ActiveX controls: It is not a security issue, but a patent dispute between Microsoft and a company called Eolas.

With this little trick, web projects that deploy TX Text Control ActiveX work as before.

Stay in the loop!

Subscribe to the newsletter to receive the latest updates.

ActiveX

TX Text Control ActiveX is a royalty-free, fully programmable rich edit control that offers developers a broad range of word processing features in a reusable component. It provides comprehensive text formatting, powerful mail merge features and all word processing key concepts such as table support, images, headers and footers and page sections.

See ActiveX products

Related Posts

ActiveXInternet Explorer

Word Processing in Microsoft Internet Explorer

By running TX Text Control ActiveX in Internet Explorer, all clients in the local network or the Internet can access a word processing application, using their browser. Read the full article and…


ActiveXASP.NETWindows Forms

Expert Implementation Services for Legacy System Modernization

We are happy to officially announce our partnership with Quality Bytes, a specialized integration company with extensive experience in modernizing legacy systems with TX Text Control technologies.


ActiveXASP.NETWindows Forms

Service Pack Releases: What's New in TX Text Control 33.0 SP1 and 32.0 SP5

TX Text Control 33.0 Service Pack 1 and TX Text Control 32.0 Service Pack 5 have been released, providing important updates and bug fixes across platforms. These service packs improve the…


ActiveXASP.NETWindows Forms

TX Text Control 32.0 Service Pack 4 Released

We are very happy to announce the immediate availability of new Service Packs for TX Text Control 32.0 for all platforms including Windows Forms, WPF, ASP.NET, and ActiveX. This release includes…


ActiveXASP.NETReporting

TX Text Control 32.0 Has Been Released

We are pleased to announce the immediate availability of TX Text Control 32.0 for all platforms including ASP.NET, Windows Forms, WPF and ActiveX.