Spread Windows Forms 7.0 Product Documentation
Displaying an Abort Message for the User
Support Options
Spread Windows Forms 7.0 Product Documentation > Developer's Guide > Managing Printing > Displaying Dialogs for Users > Displaying an Abort Message for the User

Glossary Item Box

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 these:

Using Code

  1. Create and set the AbortMessage property for a PrintInfo object.
  2. Set the SheetView object PrintInfo property to the PrintInfo object you just created.

Example

This example brings up the cancel dialog.

C# Copy Code
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);
VB Copy Code
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)

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