ActiveReports 6 Online Help
ActiveReport.FetchEventArgs Class
Members  Example 

FetchEventArgs class provides data required for the FetchData Event.
Object Model
ActiveReport.FetchEventArgs Class
Syntax
'Declaration
 
Public Class ActiveReport.FetchEventArgs 
   Inherits System.EventArgs
public class ActiveReport.FetchEventArgs : System.EventArgs 
Example
private void rptUnbound_FetchData(object sender, DataDynamics.ActiveReports.ActiveReport.
    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 DataDynamics._
      ActiveReports.ActiveReport.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
Inheritance Hierarchy

System.Object
   System.EventArgs
      DataDynamics.ActiveReports.ActiveReport.FetchEventArgs

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ActiveReport.FetchEventArgs Members
DataDynamics.ActiveReports Namespace
FetchData Event
ActiveReport.FetchEventHandler Delegate

Send Feedback