[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.SectionReport.FetchData

FetchData Event

Occurs for each data record processing.

Namespace: GrapeCity.ActiveReports
Assembly: MESCIUS.ActiveReports.dll
Syntax
public event SectionReport.FetchEventHandler FetchData
Returns
Type Description
SectionReport.FetchEventHandler Occurs for each data record processing.
Examples
var sectionReport = new GrapeCity.ActiveReports.SectionReport();
sectionReport.Document.Printer.PrinterName = String.Empty;
sectionReport.FetchData += (sender, e) =>
{
	while (_reader.Read())
	{
		sectionReport.Fields["CategoryName"].Value = _reader["CategoryName"].ToString();
		sectionReport.Fields["ProductName"].Value = _reader["ProductName"].ToString();
		sectionReport.Fields["Description"].Value = _reader["Description"].ToString();
		e.EOF = false;
	}
	e.EOF = true;
}