Problem With ActiveX Control
-
I have created an MFC ActiveX Control through the wizard. In the 2nd Step of the wizard I have enabled the checkbox saying “Available in Insert Object Dialog”, so that I can use my control in Microsoft Office Application like MS Word, Excel, PowerPoint etc using Insert Objects. I am using property sheet to change the text contents of my control. For that I followed the steps mentioned the MSDN Example CIRC. http://msdn2.microsoft.com/en-us/library/c6hzbzz6(VS.80).aspx My control features the following characteristics. • Changing the painting behavior of an ActiveX control • Adding stock properties • Adding custom properties • Responding to mouse events • Adding custom events • Using text and fonts • Implementing ActiveX control property pages • Using simple data binding for control properties But at present I am stuck up problems. 1. Using property sheet I can update the text contents in ActiveX test container. But it doesn’t get updated in Word, and other Office Applications. In fact its not even recognizing any of the event fired by the user (like changing the color on mouse click, key press etc) in any of the office application. 2. I am using this control for assigning digital signatures to a document. For that I am using X509 libraries. But these libraries use Common Language Runtime (/CLR) Support. And if I enable CLR from the project settings, the control crashes while loading on the Office application, ultimately crashing the entire document.
-
I have created an MFC ActiveX Control through the wizard. In the 2nd Step of the wizard I have enabled the checkbox saying “Available in Insert Object Dialog”, so that I can use my control in Microsoft Office Application like MS Word, Excel, PowerPoint etc using Insert Objects. I am using property sheet to change the text contents of my control. For that I followed the steps mentioned the MSDN Example CIRC. http://msdn2.microsoft.com/en-us/library/c6hzbzz6(VS.80).aspx My control features the following characteristics. • Changing the painting behavior of an ActiveX control • Adding stock properties • Adding custom properties • Responding to mouse events • Adding custom events • Using text and fonts • Implementing ActiveX control property pages • Using simple data binding for control properties But at present I am stuck up problems. 1. Using property sheet I can update the text contents in ActiveX test container. But it doesn’t get updated in Word, and other Office Applications. In fact its not even recognizing any of the event fired by the user (like changing the color on mouse click, key press etc) in any of the office application. 2. I am using this control for assigning digital signatures to a document. For that I am using X509 libraries. But these libraries use Common Language Runtime (/CLR) Support. And if I enable CLR from the project settings, the control crashes while loading on the Office application, ultimately crashing the entire document.