C#中导出bitmap图像~高手请进
求助:我利用控件画了一个bitmap类型的图片,想到最终导出到EXCEL表格中,应该说是复制粘贴到表格中吧,请教怎么写啊?
------解决方案--------------------
Excel.Worksheet xSheet=( Excel.Worksheet)xBook.Sheets[1];
xSheet.Shapes.AddPicture("D:\\a.bmp", MsoTriState.msoFalse ,
MsoTriState.msoTrue,10,10,150,150);
public void InsertPicture(string RangeName, string PicturePath)
{
m_objRange = m_objSheet.get_Range(RangeName, m_objOpt);
m_objRange.Select();
Excel.Pictures pics = (Excel.Pictures)m_objSheet.Pictures(m_objOpt);
pics.Insert(PicturePath, m_objOpt);
}
------解决方案--------------------