title: Crystal Reports crash in second printing
body: <p>I was made to print a report in C#. But I found the error. For the first print run normally. But for the second time, my program is immediately stopped.</p>
  
  <p>The window error is something like that :</p>
  
  <blockquote>
    <p>has encountered a problem and needs to close. we are sorry for the inconvenience</p>
  </blockquote>
  
  <p>The code is :</p>
  
  <pre><code>ReportDocument rptDocument = new ReportDocument();
  PrinterSettings settings = new PrinterSettings();
  
  public void cetak() {
      rptDocument.Load(Application.StartupPath + "/report/fakturpenjualan.rpt");
      rptDocument.SetParameterValue("idpenjualan", idp);
  
      rptDocument.PrintOptions.PrinterName = settings.PrinterName;
  
      rptDocument.PrintToPrinter(1, true, 0, 0);
      rptDocument.Close();
  }
  </code></pre>
  
  <p>What should I do? </p>