I am using CRforVS_13_0_16 with VS 2012. I have written a simple Winform application that is to display a simple report (all it does is display the first and last name of people in the tblNames)
Attached is the error page I'm getting. I get the error in the IDE.For references, I have:
The code:Dim rpt As New rptNames Dim da As New SqlCeDataAdapter Dim dsNames As New DataSet("tblNames") Dim con As New SqlCeConnection Dim cmd As New SqlCeCommand con.ConnectionString = "Data Source=|DataDirectory|\NamesNumbers.sdf" con.Open() cmd.Connection = con cmd.CommandText = "select FirstName,LastName from tblNames" da.SelectCommand = cmd da.Fill(dsNames, "tblNames") rpt.SetDataSource(dsNames) ' This line generates the error CrystalReportViewer1.ReportSource = rpt
End SubWhy am I getting this error?