Hi I'm having an 'The application is in Break Mode Error' when debuging this sort code.
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim ds As New test1
Dim reportdoc As New CrystalReport1
ds.Tables.Add(Test_tbl)
DataGridView1.DataSource = ds.Tables("Datatable1")
reportdoc.SetDataSource(ds.Tables("Datatable1"))
With CrystalReportViewer1
.ReportSource = reportdoc
.Refresh()
End With
End Sub
The error occurs in this Line 'reportdoc.SetDataSource(ds.Tables("Datatable1"))'