图片展示:
AfterData事件
CodeList.pic为文本
///加载图片 private void Picture1_AfterData(object sender, EventArgs e) { string imgStr=((String)Report.GetColumnValue("CodeList.pic")) ; // MessageBox.Show(imgStr); if (string.IsNullOrEmpty(imgStr)) { Picture1.Visible=false; return; } byte[] imgData=Convert.FromBase64String(imgStr); MemoryStream ms = new MemoryStream(imgData); Image img = System.Drawing.Image.FromStream(ms); Picture1.Image=img; }
标签:pic,展示,Image,Picture1,FastReport,imgStr,图片 From: https://www.cnblogs.com/tiancaige/p/17077728.html