Luther1978
Technical User
Other Threads suggest using the ParameterFields (i.e. Thread 796-811936)
But I can't seem to simply create a parameterfields using Dim ParameterFields As ParameterFields
Am I missing something fundamently basic?
my code:
Sub Open_CrystalViewer_STD(ByVal ReportName As String, ByVal StartPeriod As Date, ByVal EndPeriod As Date)
MsgBox(CDate(StartPeriod) & " To " & CDate(EndPeriod))
Dim paramField As ParameterFields
Dim ViewRpt As New FRM_ViewReport
ViewRpt.CrystalReportViewer().ReportSource = ReportName
ViewRpt.Show()
End Sub
underlines the ParameterFields in blue to suggest it doesn't understand.
Do I have to import the CrystalDecisions.Shared module somehow its listed in the references in the solution.
Thanks in advance
But I can't seem to simply create a parameterfields using Dim ParameterFields As ParameterFields
Am I missing something fundamently basic?
my code:
Sub Open_CrystalViewer_STD(ByVal ReportName As String, ByVal StartPeriod As Date, ByVal EndPeriod As Date)
MsgBox(CDate(StartPeriod) & " To " & CDate(EndPeriod))
Dim paramField As ParameterFields
Dim ViewRpt As New FRM_ViewReport
ViewRpt.CrystalReportViewer().ReportSource = ReportName
ViewRpt.Show()
End Sub
underlines the ParameterFields in blue to suggest it doesn't understand.
Do I have to import the CrystalDecisions.Shared module somehow its listed in the references in the solution.
Thanks in advance