Specifies whether to cancel generation of the current report.
Namespace:
C1.C1ReportAssembly: C1.C1Report.2 (in C1.C1Report.2.dll)
Syntax
C# |
---|
[BrowsableAttribute(false)] [DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)] public bool Cancel { get; set; } |
Visual Basic |
---|
<BrowsableAttribute(False)> _ <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> _ Public Property Cancel As Boolean Get Set |
Remarks
Setting this property to true while a report is being generated stops the report generation process.
Any pages already created are kept in the document and can be previewed or printed by an attached
print preview control.
Examples
The following code implements a button control to cancel the report before it is finished:
Copy CodeVisual Basic
Private Sub _btnCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCancel.Click c1Report.Cancel = True Close() End Sub |
Copy CodeC#
private void _btnCancel_Click(object sender, System.EventArgs e) { c1Report.Cancel = true; Close(); } |
For an example using the Cancel property, see the Displaying a Progress Indicator While the Report Renders topic.