在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()之后再为控件赋值

猜你喜欢

转载自www.cnblogs.com/zylbky/p/12166970.html
今日推荐