[]
Occurs for each data record processing.
public event SectionReport.FetchEventHandler FetchData
Type | Description |
---|---|
SectionReport.FetchEventHandler | Occurs for each data record processing. |
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;
}