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

مشاهدة النسخة كاملة : error ---Cannot find table 0.



C# Programming
06-27-2009, 10:41 AM
Hello Experts!!

i got above error in following code--->

mysdset = new DataSet();
DataColumn mycolumn = new DataColumn("Picture");
mycolumn.DataType = typeof(System.Byte[]);
mysdset.Tables[0].Columns.Add(mycolumn);
mysdset.Tables["tblImgData"].Rows[0]["Picture"] = GetImageData(s);

where string s = dr["Picture"].ToString();

I am fetching image from sql and displaying into crystal report.