To display a crystal report in a windows application, you need to have a form with a crystalreportviewer control on it, then you create the crystal report, load it with data and set the reportsource of the viewer to equal the crystalreport object you've just created, i.e.:
Code:
Public Sub PalletList(ByVal JobNumber As String, ByVal DespatchOrOutwork As Char, _
Optional ByVal Undelivered As Boolean = False)
' get the data for the report from my database object, odbops, according to the passed in parameters...
Dim dsPallets As dsDespatch = oDbOps.GetPalletList(JobNumber, DespatchOrOutwork, Undelivered)
' create my report (crPalletList) and load it with data...
Dim rptPalletList As New crPalletList
rptPalletList.SetDataSource(dsPallets)
' show the report in the crystal report viewer...
crvReport.ReportSource = report
End Function