FlexReport for WinForms
SubreportHasData プロパティ (SubreportField)
使用例 


C1.Report.4.6.2 アセンブリ > C1.Report 名前空間 > SubreportField クラス : SubreportHasData プロパティ
Returns whether a subreport has data and suppresses rendering if it doesn't.
シンタックス
'宣言
 
Public ReadOnly Property SubreportHasData As System.Boolean
'使用法
 
Dim instance As SubreportField
Dim value As System.Boolean
 
value = instance.SubreportHasData
public System.bool SubreportHasData {get;}
解説
This property allows you to check whether a subreport has data and prevent it from rendering if it doesn't.
使用例
The code below uses script to hide sections with empty subreports: The code below uses script to hide a field containing an empty subreport and show another field instead:
rep.Sections.Detail.OnFormat = "Detail.Visible = fSubreport.SubreportHasData"
rep.Sections.Detail.OnFormat = 
    "hasData = fSubreport.SubreportHasData\r\n" +
    "fSubreport.Visible = hasData" +
    "fNoData.Visible = Not hasData\r\n" +
参照

参照

SubreportField クラス
SubreportField メンバ