View Single Post
  #10 (permalink)  
Old May 22nd, 2006, 03:41 AM
prat_0510 prat_0510 is offline
Registered User
 
Join Date: May 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

 I m generating Barcode image which i want on my crystal report...
This is my code ......

 Dim ds As New dsProductTag
        Dim rpt As New rptProdTag

        Dim bc As C1BarCode

        Me.SqlConnection1.ConnectionString = System.Configuration.ConfigurationSettings.AppSett ings("sqlConnString")
        Me.SqlConnection1.Open()

        Me.SqlSelectCommand1.CommandText = "SELECT * FROM PRMAProductUPCDetail where VarProductId='1'"
        Me.SqlSelectCommand1.Connection = Me.SqlConnection1

        Me.SqlDataAdapter1.SelectCommand = Me.SqlSelectCommand1

        Me.SqlDataAdapter1.Fill(ds)

        For Each dr As DataRow In ds.Tables(0).Rows
            bc = New C1BarCode
            bc.CodeType = CodeTypeEnum.Ean13
            bc.Text = CStr(dr("VarUPC"))
            bc.ShowText = True

            dr("ImgProductTag") = bc.Image
        Next

          rpt.SetDataSource(ds)
        CrystalReportViewer1.ReportSource = rpt

        Me.SqlConnection1.Close()

 i already have image column in my dataset table
i ve drag the image field on the report n its showing BLOB type but on execution it is not shoiwing the image only its space cross image..
can any one help me...
what i m missing.