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').
 

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

Back
Top