fastreport自定義顯示內容或者顯示不顯示等
阿新 • • 發佈:2021-01-29
通過判斷資料內容設定相應資訊
fastreport寫了if一定要寫else
再有就是表格內容如果字型顏色為黑色,不顯示的話可以設定成白色
private void Data1_BeforePrint(object sender, EventArgs e) { if( Report.GetColumnValue("Table21.NOTE").ToString().Contains("補錄")) { PicDoctor.Visible=false; Picture1.Visible=false; PicDoctor2.Visible=false; PicNurse.Visible=false; Cell2TZRQ.TextColor=Color.White; }else{ PicDoctor.Visible=true; Picture1.Visible=true; PicDoctor2.Visible=true; PicNurse.Visible=true; Cell2TZRQ.TextColor=Color.Black; } }