title: How do I programmatically import a Crystal Reports SubReport into a Report Section in Visual Studio 2010
body: <p>I have a Crystal Report object defined as follows:</p>
  
  <pre><code>private CrystalDecisions.CrystalReports.Engine.ReportClass rep;
  </code></pre>
  
  <p>I am trying to Import a SubReport into Section 1 of the report. I have tried variants of the following code:
      rep.ReportClientDocument.SubreportController.ImportSubreport</p>
  
  <p>There seems to be conflict between:</p>
  
  <pre><code>CrystalDecisions.CrystalReports.Engine
  </code></pre>
  
  <p>and</p>
  
  <pre><code>CrystalDecisions.ReportAppServer
  </code></pre>
  
  <p>Has anybody programmatically imported a Sub-Report in Crystal using VS2010?</p>