在C#程序中为fastreport 控件赋值

  

string Path = System.Environment.CurrentDirectory + "/test.frx";//获取路径
report.Load(Path);//加载模板  

var graph = report.FindObject("Picture1") as PictureObject;
graph.ImageLocation="http://www.图片路径.jpg ";


FastReport.Table.TableCell Cell6 = new FastReport.Table.TableCell();
Cell6 = (FastReport.Table.TableCell)report.FindObject("Cell6");
Cell6.Text = "显示内容";

 

//.............要在Load()之后再为控件赋值

posted @ 2020-01-08 15:39  咕噜咕噜。。。  阅读(1487)  评论(0编辑  收藏  举报