diverdan
Active member
Hi there,
I have been using vb.net for the last few weeks so I am very new to it.
I have managed to create a report and I have also added a ReportViewer onto a form.
I am trying to get the viewer to work but I am having no luck.
This is the code that im trying to get working
Can anyone please help me out...
I have been using vb.net for the last few weeks so I am very new to it.
I have managed to create a report and I have also added a ReportViewer onto a form.
I am trying to get the viewer to work but I am having no luck.
This is the code that im trying to get working
VB.NET:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim MonthlySales As New Customer
Dim strCustomerID As String
strCustomerID = "1"
MonthlySales.SetParameterValue("CustomerID", strCustomerID)
CrystalReportViewer1.ReportSource() = MonthlySales
CrystalReportViewer1.Refresh()
End Sub