/// <summary>
 /// Called when WritingCancelled event raised by a DocumentWriter (during printing).
 /// </summary>
 /// <param name="sender">Sender of the event.</param>
 /// <param name="e">Event arguments.</param>
 private void HandlePrintCancelled(object sender, WritingCancelledEventArgs e)
 {
     CleanUpPrintOperation();
 }
 /// <summary>
 /// Called when WritingCancelled event raised by a DocumentWriter (during printing).
 /// </summary>
 /// <param name="sender">Sender of the event.</param>
 /// <param name="e">Event arguments.</param>
 private void HandlePrintCancelled(object sender, WritingCancelledEventArgs e)
 {
     ClearPrintingState();
 }