Crystal report create connection to OLE DB database
I am working with VS 2005 and using visual basic for coding.

How do I set up the connection object for my crystal report using vb code.

I have written some code

    Dim strcon As String = ConfigurationManager.AppSettings("PhdConnectionString")
    Dim getconn As SqlConnection = New SqlConnection(strcon)
    
    Dim rpt As ReportDocument = New ReportDocument
    
            rpt.Load(Server.MapPath("aspirantCrystalReport.rpt"))
            
//  I want to set the connection properties here. How do I do that ?

            CrystalReportViewer1.ReportSource = rpt
            CrystalReportViewer1.DataBind()


Crystal report create connection to OLE DB database
===

I am working with VS 2005 and using visual basic for coding.

How do I set up the connection object for my crystal report using vb code.

I have written some code

    Dim strcon As String = ConfigurationManager.AppSettings("PhdConnectionString")
    Dim getconn As SqlConnection = New SqlConnection(strcon)
    
    Dim rpt As ReportDocument = New ReportDocument
    
            rpt.Load(Server.MapPath("aspirantCrystalReport.rpt"))
            
//  I want to set the connection properties here. How do I do that ?

            CrystalReportViewer1.ReportSource = rpt
            CrystalReportViewer1.DataBind()

