数据库中存放的是图片的物理路径,所以我想通过在代码中首先把图片取出,然后绑定到XtraReports模板中的pictureBox上,请问如何绑定?这里有我写的测试代码,结果都是未将对象引用到实例。
            private XtraReport rept = new XtraReport();
            string path = Application.StartupPath + @"\1276453771_administrator.png";
            Image img = Image.FromFile(path);            XRPictureBox pic = (XRPictureBox)rept.FindControl("pictureBox1", true);
            pic.Image=img;
            rept.ShowPreview();pic.DataBindings.Add(“Image”,?,?);内部参数不知道如何写,望高手赐教