Printing TreeView

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gyanendar
    New Member
    • Jun 2007
    • 90

    Printing TreeView

    Hi All,
    I using WIN FORM .net 3.5.

    I want to print the treeview. I used Treeview.Conver tToBitmap() to get the bitmap and then converted it to Image and draw that on printDocument.
    But the problem that ,it draw only those part of treeview which is visible not the whole treeview.

    Please suggest .

    Regards,
    Gyanendar
  • Monomachus
    Recognized Expert New Member
    • Apr 2008
    • 127

    #2
    Originally posted by gyanendar
    Hi All,
    I using WIN FORM .net 3.5.

    I want to print the treeview. I used Treeview.Conver tToBitmap() to get the bitmap and then converted it to Image and draw that on printDocument.
    But the problem that ,it draw only those part of treeview which is visible not the whole treeview.

    Please suggest .

    Regards,
    Gyanendar
    Take a look here and try to see if it does what you really need.

    Comment

    • tlhintoq
      Recognized Expert Specialist
      • Mar 2008
      • 3532

      #3
      Open all the nodes, then print?

      Comment

      • gyanendar
        New Member
        • Jun 2007
        • 90

        #4
        I can expand all the node..but not all node will be visible ...so only visible node is coming in the print.

        -Gyanendar

        Comment

        • tlhintoq
          Recognized Expert Specialist
          • Mar 2008
          • 3532

          #5
          My mistake. I thought you meant the 'expanded' nodes.

          Comment

          Working...