title: How do I disable the print preview in sap crystal reports using vb.net?
body: <p>I want to print receipts without showing the print preview window. Is it possible to have it print to the default printer connected to the pc without print preview?</p>
  <p><strong>This is my current code:</strong></p>
  <pre><code>    Private Sub BTPRINT_Click(sender As Object, e As EventArgs) Handles BTPRINT.Click
  
      Dim dt As New DataTable
      With dt
          .Columns.Add(&quot;Articulo&quot;)
          .Columns.Add(&quot;Cantidad&quot;)
          .Columns.Add(&quot;Precio&quot;)
  
      End With
      For Each dgr As DataGridViewRow In Me.DataGridView1.Rows
          dt.Rows.Add(dgr.Cells(0).Value, dgr.Cells(1).Value, dgr.Cells(2).Value)
      Next
  
      Dim reportdocument As CrystalDecisions.CrystalReports.Engine.ReportDocument
      reportdocument = New CrystalReport2
      reportdocument.SetDataSource(dt)
      Form3.CrystalReportViewer1.ReportSource = reportdocument
  
      Form3.ShowDialog()
      Form3.Dispose()
  End Sub
  </code></pre>