After downloading crystal reports for VS 2010, the code i used in VS 2008 generates a database login error
Imports CrystalDecisions.CrystalReports.Engine
Imports System.Data.SqlClient
Imports System.Data.OleDb
Public Class RrportForm
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim RrportForm As New ReportDocument
RrportForm.Load("D:\PROJECT\Vehicle Management and Maintenance\Vehicle Management and Maintenance\CrystalReport1.rpt")
CrystalReportViewer1.ReportSource = RrportForm
CrystalReportViewer1.Refresh()
End Sub
End Class