I am using the TreeView ActiveX control to display hierarchical data from VFP6 table (key,parent, text) by "KBQ253453 How to use the Tree View control"
How can i create print function to report the Tree hierarchy ?
Since youl oaded the tree, you should be able to create a cursor with the same data (if you don't already have it), and then simply use the report generator to report it.
If you want a more visual representation, you'' probably need to do a Print Screen. There have been a number of threads on this (use the Search), but you'll only be able to print what you can see.
You can also traverse the tree systematically like
Code:
FOR lnI= 1 to THISFORM.treView.Nodes.Count
loNode = THISFORM.treView.Nodes.item[lnI]
* all these properties, and more, are available:
loNode.Key
loNode.FullPath
loNode.Parent
loNode.NextSibling
ENDFOR
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.