Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Treeview print function

Status
Not open for further replies.

pikjuo

Programmer
Dec 12, 2000
12
LT

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 ?

Thanks for all yuor suggestions.
 
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.

Rick
 
Hi Rick,

I need some SQL help for creating apropriate cursor to report hierarchical data.

Thanks for yuor help.

Juozas
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top