0

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"))'

2
Contributors
1
Reply
15
Views
2 Years
Discussion Span
Last Post by Nutster
0

Break Mode usually occurs when you have stopped your program with the Pause button in the IDE or hitting a breakpoint. You can also put a Stop keyword in your code to get to Break Mode. What were you trying to do when you got the message that you were in break mode?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.