Skip to Content
0
Jul 19, 2019 at 09:56 AM

Crystal reports for VS2017 wont display any record

312 Views

I have VS 2017 community edition, v15.9.15 and installed CRforVS13SP25_0-10010309.EXE.

When I try to run a query/view from SQL server 2014, it doesn't show any records at all. Just displays the header text. Whereas a datagridview is displaying all the records.

Tried this code:

Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'NorthwindDataSet.Current_Product_List' table. You can move, or remove it, as needed.
Me.Current_Product_ListTableAdapter.Fill(Me.NorthwindDataSet.Current_Product_List) Me.CrystalReport11.FileName = "c:\temp\ExcelCrystalRpt\ExcelCrystalRpt\CrystalReport1.rpt"
Me.CrystalReport11.Refresh()
Me.CrystalReportViewer1.RefreshReport()
Me.CrystalReportViewer1.Refresh()
End Sub

But still no records. What I am doing wrong.