Open Crystal Report Viewer form C#
<p>I'm Puthyrath,</p>

<p>I have a windows forms application with two windows form (form1 and form2) in C# 2010. My form2 contains crystal report viewer and 
I created a button on form1 to open form2:</p>

<pre><code>Form2 frm = new Form2();
frm.QueryString = SQLstring();
frm.Show();
this.Hide(); 
</code></pre>

<p>It's OK to run form2 to show report, but when I try to export the report by clicking button 'Export report' on the left top corner, I got an error:</p>

<pre><code> static void Main()
      {
         Application.EnableVisualStyles();
         Application.SetCompatibleTextRenderingDefault(false);
          Application.Run(new Form1());//Error occurred.
     }
</code></pre>

<p>the error message is:</p>

<blockquote>
  <p>"External component has thrown an exception."</p>
</blockquote>

<p>please help. </p>
