如何使用crystal report C#.net中的路径在图片对象中显示图片
//此代码用于使用Crystal Report中的路径显示数据库中的图像。 //但我的图像不显示在图片对象中。请帮帮我如何使用crystal report C#.net中的路径在图片对象中显示图片,c#,crystal-reports,C#,Crystal Reports,//此代码用于使用Crystal Report中的路径显示数据库中的图像。 //但我的图像不显示在图片对象中。请帮帮我 public class studentlist { public string Photopath1 { get; set; } } var query = (from b in db.User_Students_Registration select new { b.Photopath}); if (query
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;
}
}