i am using vs2015
export to gridview my datagridview1 columns are regno,name,image
my code is..
private void copyAlltoClipboard()
{
dataGridView1.SelectAll();
DataObject dataObj = dataGridView1.GetClipboardContent();
if (dataObj != null)
Clipboard.SetDataObject(dataObj);
}
private void button3_Click_1(object sender, EventArgs e)
{
copyAlltoClipboard();
Microsoft.Office.Interop.Excel.Application xlexcel;
Microsoft.Office.Interop.Excel.Workbook xlWorkBook;
Microsoft.Office.Interop.Excel.Worksheet xlWorkSheet;
object misValue = System.Reflection.Missing.Value;
xlexcel = new Excel.Application();
xlexcel.Visible = true;
xlWorkBook = xlexcel.Workbooks.Add(misValue);
xlWorkSheet = (Excel.Worksheet)xlWorkBook.Worksheets.get_Item(1);
Excel.Range CR = (Excel.Range)xlWorkSheet.Cells[1, 1];
CR.Select();
xlWorkSheet.PasteSpecial(CR, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, true);
}
image column is empty on excel sheet

Madhanmohan DevarajanRank #342 · 7.3K reputationPosted Mar 17, 2017, 12:38 PM EDT
void PasteSpecial( Object Format, Object Link, Object DisplayAsIcon, Object IconFileName, Object IconIndex, Object IconLabel, Object NoHTMLFormatting )Legent Mady36 reputationPosted Mar 18, 2017, 9:19 AM EDT
Madhanmohan DevarajanRank #342 · 7.3K reputationPosted Mar 20, 2017, 5:33 AM EDT