Microsoft Treeview control 6.0 (sp6) in Infopath

M

Murali Krishna

Hi

I have added Microsoft Treeview Control 6.0 (sp6) from
custom control selection window. I have placed it on my
form.
Please give me suggestions like ..how to add nodes to
that tree using VB script in the Microsoft script editor.


Thanks in advance

Murali Krishna
 
A

Andrew Ma [MSFT]

With InfoPath's custom control support, you are only able to bind data to
the control. You cannot programmatically get the control and work with it.
This is the same case with all the other built in controls.

InfoPath's programmability model is for you to work with the data.

--
Andrew J. Ma
Software Test Engineer
Microsoft Office InfoPath
http://blogs.msdn.com/ajma
---------------------------------------
This posting is provided "As Is" with no warranties, and confers no rights.
Use of any included script sample are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
Please do not send email directly to this alias. This alias is for
newsgroup purposes only.
 
M

Murali Krishna

Hi,

How to bind data to the Microsoft Treeview control 6.0
(sp6) in Infopath.


Advance Thanks

Murali
 
A

Andrew Ma [MSFT]

The TreeView control doesn't have a suitable property to bind to.
To use this control, you will have to wrap the control so that it exposes
all its nodes in one property that Infopath can use. I'll recommend exposing
it through an IXMLDOMNode property and then doing node binding
(http://blogs.msdn.com/ajma/archive/2004/07/09/178857.aspx)

--
Andrew J. Ma
Software Test Engineer
Microsoft Office InfoPath
http://blogs.msdn.com/ajma
---------------------------------------
This posting is provided "As Is" with no warranties, and confers no rights.
Use of any included script sample are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
Please do not send email directly to this alias. This alias is for
newsgroup purposes only.
 

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