Spread Windows Forms 6.0 Product Documentation
Abort Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > PrintAbortEventArgs Class : Abort Property


Glossary Item Box

Gets or sets whether to discontinue the print job.

Syntax

Visual Basic (Declaration) 
Public Property Abort As Boolean
Visual Basic (Usage)Copy Code
Dim instance As PrintAbortEventArgs
Dim value As Boolean
 
instance.Abort = value
 
value = instance.Abort
C# 
public bool Abort {get; set;}

Property Value

Boolean: true to cancel the print job; false otherwise

Example

This example sets the Abort property.

C#Copy Code
private void fpSpread1_PrintAbort(object sender, FarPoint.Win.Spread.PrintAbortEventArgs e)
{
e.Abort = true;
}

private void button1_Click(object sender, System.EventArgs e)
{
fpSpread1.PrintSheet(0);
}
Visual BasicCopy Code
Private Sub FpSpread1_PrintAbort(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.PrintAbortEventArgs) Handles FpSpread1.PrintAbort
       e.Abort = True
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        FpSpread1.PrintSheet(0)
End Sub 

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

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.