title: TreeNode export to excel
body: <p>I am trying to export a treeview which has several nodes, child nodes to excel. the progress so far is the below code. </p>
  
  <p>How can I extract all the nodes and childnodes to seperate columns?</p>
  
  <pre><code>string mydocpath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
  using (StreamWriter sw = new StreamWriter(mydocpath + @"\MaterialList.csv"))
  foreach (TreeNode node in treeView1.Nodes)
  {
        sw.WriteLine(node);
  }
  </code></pre>