Custom ActiveX control problem

J

J_uk

We are trying to develop an MFC Active-X control for use within InfoPath but
are experiencing numerous issues. The most pressing issue is how to get
InfoPath to recognise the properties that the control is supposedly exposing,
so that when adding the control into InfoPath we can specify the Binding
property and the Enabled property.

We have made the control safe, so that when we choose the control from the
list within the ‘Add Custom Control Wizard’ dialog, it proceeds to the
‘Specify Installation Options’ page. Clicking ‘Next’ here proceeds to the
‘Specify Binding Property’ page where InfoPath should list the available and
exposed properties from the control, but it does not. It simply displays the
‘(do not bind)’ option.

What do we have to do to the control to allow InfoPath to list the exposed
properties?

The control we are developing works as expected in other containers such as
the Active-X Control Test Container.

Stock properties do not get persisted properly either. Any help would be
much appreciated.
 
J

J_uk

Thanks, but this doesn't really help as this just shows how to build a
control with C# (.Net). We have a large number of visual MFC controls that
we want to use in InfoPath. Just building a default MFC control doesn't
allow it to communicate properly with InfoPath (I think the problem is the
missing IPropertyNotifySink interface. How do I add this to MFC controls?
Also, my properties don't show up in the bindable property list in InfoPath.
What do I have to do to make these show up?

The example in the SDK only shows an ATL control. is there an MFC sample /
walkthrough somewhere?

Thanks

Henning Krause said:
Hello,

take a look here:
http://blogs.msdn.com/infopath/archive/2005/04/15/408728.aspx

Greetings,
Henning Krause [MVP - Exchange]
==========================
Visit my website: http://www.infinitec.de
Try my free Exchange Explorer: Mistaya
(http://www.infinitec.de/software/mistaya.aspx)


J_uk said:
We are trying to develop an MFC Active-X control for use within InfoPath
but
are experiencing numerous issues. The most pressing issue is how to get
InfoPath to recognise the properties that the control is supposedly
exposing,
so that when adding the control into InfoPath we can specify the Binding
property and the Enabled property.

We have made the control safe, so that when we choose the control from the
list within the 'Add Custom Control Wizard' dialog, it proceeds to the
'Specify Installation Options' page. Clicking 'Next' here proceeds to the
'Specify Binding Property' page where InfoPath should list the available
and
exposed properties from the control, but it does not. It simply displays
the
'(do not bind)' option.

What do we have to do to the control to allow InfoPath to list the exposed
properties?

The control we are developing works as expected in other containers such
as
the Active-X Control Test Container.

Stock properties do not get persisted properly either. Any help would be
much appreciated.
 
H

Henning Krause [MVP - Exhange]

Sorry, don't know of any.

Greetings,
Henning Krause [MVP - Exchange]
==========================
Visit my website: http://www.infinitec.de
Try my free Exchange Explorer: Mistaya
(http://www.infinitec.de/software/mistaya.aspx)


J_uk said:
Thanks, but this doesn't really help as this just shows how to build a
control with C# (.Net). We have a large number of visual MFC controls
that
we want to use in InfoPath. Just building a default MFC control doesn't
allow it to communicate properly with InfoPath (I think the problem is the
missing IPropertyNotifySink interface. How do I add this to MFC controls?
Also, my properties don't show up in the bindable property list in
InfoPath.
What do I have to do to make these show up?

The example in the SDK only shows an ATL control. is there an MFC sample
/
walkthrough somewhere?

Thanks

Henning Krause said:
Hello,

take a look here:
http://blogs.msdn.com/infopath/archive/2005/04/15/408728.aspx

Greetings,
Henning Krause [MVP - Exchange]
==========================
Visit my website: http://www.infinitec.de
Try my free Exchange Explorer: Mistaya
(http://www.infinitec.de/software/mistaya.aspx)


J_uk said:
We are trying to develop an MFC Active-X control for use within
InfoPath
but
are experiencing numerous issues. The most pressing issue is how to get
InfoPath to recognise the properties that the control is supposedly
exposing,
so that when adding the control into InfoPath we can specify the
Binding
property and the Enabled property.

We have made the control safe, so that when we choose the control from
the
list within the 'Add Custom Control Wizard' dialog, it proceeds to the
'Specify Installation Options' page. Clicking 'Next' here proceeds to
the
'Specify Binding Property' page where InfoPath should list the
available
and
exposed properties from the control, but it does not. It simply
displays
the
'(do not bind)' option.

What do we have to do to the control to allow InfoPath to list the
exposed
properties?

The control we are developing works as expected in other containers
such
as
the Active-X Control Test Container.

Stock properties do not get persisted properly either. Any help would
be
much appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top