title: Create an object whose type is in a string parameter
body: <p>I have a TreeView, which contains nodes. When a user clicks on a node, corresponding CrystalReport document should be created and displayed.</p>
  
  <p>For example, names of my nodes are: "PeriodReport1", "PeriodReport2", "PeriodReport3". My CrystalReport documents are named same: "PeriodReport1", "PeriodReport2", "PeriodReport3".</p>
  
  <p>How can I create and display right type of crystal reports document? I could do something like this:</p>
  
  <pre><code>select case reportName
      case "PeriodReport1"
          dim myReport as new PeriodReport1
      case "PeriodReport2"
          dim myReport as new PeriodReport2
      ...
  end select
  </code></pre>
  
  <p>But probably there is a nicer way to do this. Can I use reflection to do this?</p>