Hi,

I am using the following code to set the Data Source for a crystal report to a disconnected recordSet created in VB. This works perfectly when printing the report, but is there a way to get a preview window of the report? Thanks for any ideas.
VB Code:
  1. Private Sub cmdReport_Click()
  2.     Dim CRXApplication As New CRAXDRT.Application
  3.     Dim CRXReport As CRAXDRT.Report
  4.     Set CRXReport = CRXApplication.OpenReport(App.Path & "\retention.rpt", 1)
  5.     Dim CRXDatabase As CRAXDRT.Database
  6.     Set CRXDatabase = CRXReport.Database
  7.     CRXDatabase.SetDataSource RS, 3, 1
  8.     CRXReport.PrintOut
  9. End Sub