在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