public class studentlist
{
public string Photopath1 { get; set; }
}
var query = (from b in db.User_Students_Registration select new { b.Photopath});
if (query.Count() > 0)
{
foreach (var a in query)
{
Pictureobject p=(Pictureobject)cr.ReportDefinition.Sections ["Section3"]ReportObjects["rptStudentDetailstext1"];
p.Picture = a.Photopath;
}
}
//此代码用于显示Crystal Report中使用路径的图像。 //但是我的图像没有显示在Picture对象中。请帮助我