how to view image from datagridview to crystal report from column image type in sql server ?
I want view picture in report with data ( name , address , image) I'm use this code :
- Dim dt As New DataTable
- With dt
- .Columns.Add("names")
- .Columns.Add("address")
- .Columns.Add("image", System.Type.GetType("System.Byte[]"))
- End With
- For Each dr As DataGridViewRow In Me.DataGridView1.Rows
- dt.Rows.Add(dr.Cells("names").Value, dr.Cells("address").Value, dr.Cells("image").Value)
- Next
-
-
- Dim rptdoc As CrystalDecisions.CrystalReports.Engine.ReportDocument
- rptdoc = New CrystalReportCount
- rptdoc.SetDataSource(dt)
-
- CRCountTotal.CrystalReportViewer1.ReportSource = rptdoc
- CRCountTotal.ShowDialog()
- CRCountTotal.Dispose()
with my code don't show image but show data only with any rows in report
please help solve in my code