PrintPreview for TreeView

  • Thread starter Thread starter Dev2004
  • Start date Start date
D

Dev2004

Hello,

Does anyone have any examples on how I could show the
contents of the TreeView in a PrintPreview window. I've
looked at the PrintPreviewDialog control but could not
see how I could link the TreeView control to it. I'm
assumming I've got to print the pages myself.

Thanks,
 
Dev2004 said:
Does anyone have any examples on how I could show the
contents of the TreeView in a PrintPreview window. I've
looked at the PrintPreviewDialog control but could not
see how I could link the TreeView control to it. I'm
assumming I've got to print the pages myself.

You will have to loop through the nodes and draw them onto the
'PrintDocument' yourself ('DrawString', 'DrawImage').
 
Back
Top