locked
Search Problem VB.NET RRS feed

  • Question

  • I Want To Search One Record For This I Write Code "Dim str As String = ("Data Source=ROBI-PC\SQLEXPRESS;Ini Catalog=benjir;Integrated Security=True")

            Dim con As New SqlConnection(str)

            Dim cmd As New SqlCommand("select * from Table_4 where ID like '%" + Trim(TextBox1.Text) + "%'", con)

            Dim da As New SqlDataAdapter(cmd)

            Dim ds As New DataSet()

            If (da.Fill(ds, "Table_4")) Then

                Dim report As CrystalReport1
                report = New CrystalReport1()
                report.SetDataSource(da)
                CrystalReport1.ReportSource = report
                Form2.ShowDialog()
                MessageBox.Show("")

            Else

                MessageBox.Show("")

            End If"

    I Use NameSpease Imports CrystalDecisions.CrystalReport.Engine

    But When I Debug My Project Then Show Message "Reference recuired to Assembly 'Crystal Decisions.ReportAppServer.Controllers ,Vesion = 13.0.2000.0,Culture = PublicKeyToken =692fbea5521e1304' Containing  the
    type 'CrystalDecision.ReportAppServer.Controllers.ReportSource'Add On your Project"

      Please Help Me Where Problem

    Saturday, January 9, 2016 5:10 PM

Answers

  • Hi benjir01,

    >>"Reference recuired to Assembly 'Crystal Decisions.ReportAppServer.Controllers ,Vesion = 13.0.2000.0,Culture = PublicKeyToken =692fbea5521e1304'"

    Did you import this assembly to your project? 

    In addition, Crystal Report is a third party library. I suggest you create a new thread on its official forum for dedicated help.

    Best Regards,
    Li Wang


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by benjir01 Monday, January 11, 2016 3:58 PM
    Monday, January 11, 2016 8:56 AM