When you need to pass properties to a report, you can do so using Visual Basic's Property structure:
Dim m_someProperty As String Public Property Let SomeProperty(myString As String) Let m_someProperty = myString End Property
The property can then be accessed by the calling code:
Private Sub Form_Load() Dim rpt As New rptPublicProperty rpt.SomeProperty = "This is the value that has been passed in from frmStartup" rpt.Run Me.ARViewer21.ReportSource = rpt End Sub
This allows you to pass strings and other values in for use inside your report.
Note: You must have build 1253 or later in order to run the attached sample.