ActiveX communication

P

Pablo Clavel

Hi everybody.

I have developed an activex control (.net) and I putted it into Infopath.

Through the "Value" property I want to give data to the activex when an
Infopath button is pressed. The activex use the field1. I have a field2, and
the button wants to assign the field2 text into the activex.

I tried this:

IXMLDOMNode node1 = this.thisXDocument.DOM.selectSingleNode("//my:field1");
IXMLDOMNode node2 = this.thisXDocument.DOM.selectSingleNode("//my:field2");
node1 .text = node2.text;

It doesn't do what I expect.

Can you help me?
 
M

Muhammad Sheraz Siddiqi

Hi,

Try this:
IXMLDOMNode node1 =
this.thisXDocument.DOM.selectSingleNode("my:myFields/my:field1");
IXMLDOMNode node2 =
this.thisXDocument.DOM.selectSingleNode("my:myFields/my:field2");
node1 .text = node2.text;

-Attari-
 
P

Pablo Clavel

Thanks for your aswer, by I tried this also.

I haven't resolve the problem, but I found another way. I notice if I copy
the data from a field to the activex field using rules, there is no problem.
But if we do the same using c# code on a button, then the activex "disapears".

I post another cuestion with more information on this way.

The great thing is that I have an Infopath form with Flash interaction!!!
Graphically great! And all is XML, web based, ... I'm happy!
 

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