I have to export a radgridview (winforms) with an image column.
I have stored in sql database the image and I defined the column like this:
I can see the images without problem in the radgridview, but if I try to export grid with telerik reporting (Q3 2011), I cannot see image (in the column cells it write "System.Drawing.Bitmap")
this is the code that I use when I create the table to export from the masterview:
thanks all,
Marco
I have stored in sql database the image and I defined the column like this:
gv.MasterTemplate.Columns[
"image"
].Width = 120;
gv.MasterTemplate.Columns[
"image"
].DataType =
typeof
(Image);
gv.MasterTemplate.Columns[
"image"
].ImageLayout = ImageLayout.Zoom;
I can see the images without problem in the radgridview, but if I try to export grid with telerik reporting (Q3 2011), I cannot see image (in the column cells it write "System.Drawing.Bitmap")
this is the code that I use when I create the table to export from the masterview:
System.IO.MemoryStream stmBLOBData =
new
System.IO.MemoryStream((
byte
[])gridViewTemplate.Rows[row].Cells[cell].Value);
Image image = Image.FromStream(stmBLOBData);
tableRow[cell] = image;
thanks all,
Marco