I have one display form to display my Crystal Rpeorts for my VB.NET app called CRDisplay.vb. I want to use this one form to display any number of reports I have set up such as CRMembers.rpt or CRStudents.rpt etc but I don't know how to pass this as a parameter to the CRDisplay form.

if i hard code the report name as in the code below it works fine (naturally)

What I want to do is pass the CR Report name to this form from a user report selection form so I only have the one display form rather than a separate display form for each report !! I have tried different ways but can't seem to get the name of the report file into this form

Any help woould be greatly appreciated.

Public Class CRDisplay
Inherits System.Windows.Forms.Form
Dim rpt1 As New CRmembers() 'this works - see below ****
' or dim rpt1 as CRStudents () 'if this is the report I want

#Region " Windows Form Designer generated code "
#End Region


Private Sub CRDisplay_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load

CRViewer.ReportSource = rpt1 ' this works - see above ****


End Sub
End Class