Spread Windows Forms 10.0 Product Documentation
Abort Property
Example 


Gets or sets whether to discontinue the print job.
Syntax
'Declaration
 
Public Property Abort As Boolean
'Usage
 
Dim instance As PrintAbortEventArgs
Dim value As Boolean
 
instance.Abort = value
 
value = instance.Abort
public bool Abort {get; set;}

Property Value

Boolean: true to cancel the print job; false otherwise
Example

This example sets the Abort property.

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);
}
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 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

PrintAbortEventArgs Class
PrintAbortEventArgs Members

 

 


Copyright © GrapeCity, inc. All rights reserved.