How to pass variables to report viewer?



Dim name As String

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

name = "John"

Form2.Show() 'form2 contain the report viewer control
End Sub