I have created a crystal report that is linked to a dataset. I am trying to find out how I would show this in a c# crystal report viewer contained in a winform. The code I usually use in vb.net is: -
Dim rpt As New crUsage_By_Date
rpt.Load(Forms.Application.StartupPath & "\crUsage_By_Date.rpt")
rpt.SetParameterValue("Report_Period", DateTimePicker1.Text & " to " & DateTimePicker2.Text)
'frmPreviewReport.CrystalReportViewer1.ReportSource = rpt
I am trying to find out the c# equivalent.