PowerTools ActiveReports for .NET 9.0J
EOF プロパティ (SectionReport.FetchEventArgs)
使用例 

このパラメータは参照によって渡されます。デフォルト値は true です。レポートにデータコントロールがまったくないときに、さらにレコードの処理を続行する場合は、明示的に false に設定する必要があります。レポートがデータコントロールに連結されている場合、このパラメータの値は無視され、すべてのレコードが処理されるまで、レポートの実行が継続されます。
構文
'宣言
 
Public Property EOF As Boolean
public bool EOF {get; set;}
使用例
private void rptUnbound_FetchData(object sender, GrapeCity.ActiveReports.SectionReport.
    FetchEventArgs eArgs)
{
    try    
    {        
        m_reader.Read();        
        Fields["CategoryName"].Value = m_reader["CategoryName"].ToString();        
        Fields["ProductName"].Value = m_reader["ProductName"].ToString();        
        Fields["UnitsInStock"].Value = m_reader["UnitsInStock"].ToString();        
        Fields["Description"].Value = m_reader["Description"].ToString();        
        eArgs.EOF = false;    
    }    
    catch    
    {        
        eArgs.EOF = true;    
    }
}
Private Sub rptUnbound_FetchData(ByVal sender As Object, ByVal eArgs As GrapeCity._
      ActiveReports.SectionReport.FetchEventArgs) Handles MyBase.FetchData
      Try            
          m_reader.Read()            
          Me.Fields("CategoryName").Value = m_reader("CategoryName")            
          Me.Fields("ProductName").Value = m_reader("ProductName")            
          Me.Fields("UnitsInStock").Value = m_reader("UnitsInStock")            
          Me.Fields("Description").Value = m_reader("Description")               
          eArgs.EOF = False               
          Catch ex As Exception            
          eArgs.EOF = True        
      End Try    
End Sub
参照

関連項目

SectionReport.FetchEventArgs クラス
SectionReport.FetchEventArgs メンバ

 

 


©2003-2015 GrapeCity inc. All rights reserved.