title: How to load report file in the printing control? - DevExpress
body: <p>I created report(XtraReport) and i drag reporting tool <code>PrintBarManager</code> or <code>PrintControl</code> to form. Now I need to load that report to that PrintControl. How to load ? Help me.
  I tried this code but showing error - <code>Object reference is not set to instance of object</code></p>
  
  <pre><code>var test = new XtraReport1();
  printControl1.Container.Add(test);  // Object reference not set to instance of object
  test.ShowPreview();
  </code></pre>
  
  <p>I tried this code but it showing - <code>Best overloaded method match.....</code></p>
  
  <pre><code>var test = new XtraReport1();
  printControl1.Controls.Add(test);  // Best overloaded method, invalid arguments
  test.ShowPreview();
  </code></pre>
  
  <p>How to load my report to PrintControl ?</p>