I have an image (logo) stored in my database that I would like to insert into a cell in the worksheet that I am creating. How do I go about doing this?
My code results in "ExportImage" in cell H18 and "System.Byte[]" in cell H19.
The code:
SqlDataAdapter adapter = new SqlDataAdapter("Select ExportImage From Organization Where ID = @OrgID", con);
adapter.SelectCommand.Parameters.AddWithValue("@OrgID", Int32.Parse(Session["currentOrganizationID"].ToString()));
DataTable dt = new DataTable();
adapter.Fill(dt);
//Import the datatable to sheet cell
wsCover.Cells.ImportDataTable(dt, true, "H18");
Thanks
Jim