[]
Spread provides a way for you to display an abort message to allow your end user a chance to cancel or continue with the printing.
For more information, refer to the following:
PrintAbortEventArgs class
PrintMessageBoxEventArgs class
PrintInfo class, AbortMessage property
FpSpread class, PrintMessageBox event, PrintAbort Event, and PrintCancelled Event
Create and set the AbortMessage property for a PrintInfo object.
Set the SheetView object PrintInfo property to the PrintInfo object you just created.
This example brings up the cancel dialog.
FarPoint.Win.Spread.PrintInfo pi = new FarPoint.Win.Spread.PrintInfo();
pi.AbortMessage = "Do you want to cancel printing??";
fpSpread1.ActiveSheet.PrintInfo = pi;
fpSpread1.PrintSheet(0);
Dim pi As New FarPoint.Win.Spread.PrintInfo
pi.AbortMessage = "Do you want to cancel printing??"
fpSpread1.Sheets(0).PrintInfo = pi
' Print the sheet
fpSpread1.PrintSheet(0)