title: How to auto expand and print a TreeView
body: <p>I created an application that goes out and scans every computer and populates a TreeView with Hardware, Software and updates/hotfixes information:</p>
  
  <p><img src="https://i.stack.imgur.com/8YXVH.jpg" alt="enter image description here"></p>
  
  <p>The problem I’m having is with printing, how do you automatically expand the treeview and sends the results of the selected computer to the printer? The method I am currently using involves sending the contents to a canvas (BMP) and then send it to the printer but that does not capture the whole treeview only whatever is being displayed on the screen.  Any advice?  Thank you so much.</p>