Custom Data Types and ActiveX

R

RMack005

I've added an ActiveX control to a form and bound it to a field with a data
type of Custom (both use the same namespace, which Infopath enforces). After
adding the custom type an <xsd:any> element is added to the forms schema
which, unless I've missed something, is supposed to allow any element to
appear in its place in the xml document, even those not specified in the
schema. When Infopath tries to save the value of the control (which is an
XML string) I receive this error:

"The action would result in an invalid structure for the form.
Element 'MyControlsElement' is unexpected according to content model of
parent element
'{http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-08-03T18:15:47}ElementWithComplexType'."

Which sounds like I'm not conforming with the forms schema, even though it's
supposed to accept any element at my point of insertion!? Does anyone know
were I'm going wrong? Does anyone know how to bind an ActiveX control to a
custom data type?
 

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