Fired before each report section is rendered (after it is formatted).

Namespace:  C1.Web.C1WebReport
Assembly:  C1.Web.C1WebReport.2 (in C1.Web.C1WebReport.2.dll)

Syntax

C#
public event ReportEventHandler PrintSection
Visual Basic (Declaration)
Public Event PrintSection As ReportEventHandler

Remarks

This event does not fire if the report is retrieved from the cache (see the Cache property).

Examples

This example uses the PrintSection event to create a chart and assign it to a field:

Copy CodeVisual Basic
PrivateSub c1r_PrintSection(ByVal sender AsObject,ByVal e As C1.C1Report.ReportEventArgs) Handles c1r.PrintSection
    ' get the field we want to render as a chartDim f As Field = c1r.Fields("SalesChart")
    ' make sure this is the section we wantIf f.Section <> e.Section ThenExitSub' create chart assign it to field
    f.Picture = CreateChart()
EndSub
Copy CodeC#
privatevoid c1r_PrintSection( object sender, C1.C1Report.ReportEventArgs e) c1r.PrintSection;
{
    // get the field we want to render as a chart
    Field f = c1r.Fields("SalesChart");
    // make sure this is the section we wantif (f.Section != e.Section) return;
    // create chart assign it to field
    f.Picture = CreateChart();
}

See Also