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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM