DevExpress XRPictureBox ImageUrl

DevExpress XRPictureBox ImageUrl

[抱歉我的英语不好]

我做了一份关于求职者资料的报告,求职者照片的路径存储在数据库中。 我尝试了以下代码:

private void ApplicantForm_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
{
    objectDataSource1.Fill();
    //   this.xrPictureBox1.ImageUrl = @"\10.10.101.186\photo\" + Report.GetCurrentColumnValue("APPLICANT_PHOTO");                
}

但是显示的照片都是第一申请人的照片。 我的代码有什么问题吗?

必须将代码放在xrPictureBox1的BeforePrint事件中:

private void xrPictureBox1_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
{
    xrPictureBox1.ImageUrl = @"\10.10.101.186\photo\" + Report.GetCurrentColumnValue("APPLICANT_PHOTO");
}