For i = 1 To frmPastelItems.DGItems.RowCount - 1 For j = 0 To frmPastelItems.DGItems.ColumnCount - 1 If frmPastelItems.DGItems(j, i).Value.ToString() = "System.Drawing.Bitmap" Then 'this is where i'm stuck though, i'm trying to get the image out of the datagridview column and into the cell in the worksheet Dim imgarray As Byte() = frmPastelItems.DGItems(j, i).Value Dim memorystream As IO.MemoryStream = New IO.MemoryStream(imgarray, False) imgPath = Image.FromStream(memorystream) xlWorkSheet.Cells(i + 1, j + 1) = imgPath Else 'this section is working fine and filling the worksheet nicely xlWorkSheet.Cells(i + 1, j + 1) = frmPastelItems.DGItems(j, i).Value.ToString() End If Next Next
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)