1. Just Connect your view on the crystal report,this is just to make the design. don't worry about the WHERE clause(parameter) you can set the data source later on your vb.net code.
Ex.
after you have connected your [view] to the crystal report you can now populate the crystal report like the ff.
Dim Dt As New DataTable
Private Sub GetRecords()
Using con As New SqlClient.SqlConnection("YourConnectionString")
Using com As New SqlClient.SqlCommand("SELECT * FROM [View] WHERE [ID]=@ID;", con)
com.Parameters.AddWithValue("@ID", "SomeValue")
Using da As New SqlClient.SqlDataAdapter(com)
Dt.Clear()
da.Fill(Dt)
End Using
End Using
End Using
End Sub
Private Sub SetReport()
Dim m_ReportFullPath As String = "Path\of\your\report.rpt"
Dim MyReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument
MyReport.Load(m_ReportFullPath)
MyReport.SetDataSource(Dt)
CrystalReportViewer1.ReportSource = MyReport
End Sub