المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to set the image field data to some cell of Excel?



C# Programming
10-20-2009, 03:25 PM
There is a image field in the table, and I save the picture into this field, now I use below code, how to set the value of the Tables[0].Rows[0][0] to one cell of Excel sheet?

string strCon = "Data Source=0;Initial Catalog=dbtest;Persist Security Info=True;User ID=sa;Password=ok";
SqlDataAdapter m_da = new SqlDataAdapter("select fa from G_Control", strCon);
DataSet ds = new DataSet();
m_da.Fill(ds);


Thanks in advance!