Results 1 to 5 of 5

Thread: Help me pls ! error in VB.Net connection false to Crystal Report XI

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2008
    Posts
    4

    Red face Help me pls ! error in VB.Net connection false to Crystal Report XI

    Hi,
    I will do project VB.Net 2003 ,I have error runtime but i don't know it's mean.
    I wan't query sql show in CrystalReportViewer . But is error
    Somebody please help with the code or a way of fixing this problem.

    Code

    Dim report As New Report1
    Dim SqlString As String = "SELECT * FROM TBL_FJT_TEST WHERE ID_LOT_NO ='" & dmRow_Id & "'"
    CrystalReportViewer1.ReportSource = report

    Dim dt As New DataTable
    Dim da As New SqlDataAdapter(SqlString, conn)
    da.Fill(dt)

    report.Database.Tables(0).SetDataSource(dt)
    CrystalReportViewer1.ReportSource = rpt1
    Attached Images Attached Images  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width