Пример #1
0
 private void OnPrintFailed(object sender, PrintOperationEventArgs e)
 {
     Debug.Print(String.Format("Printing request {0} failed! Make sure the provided outputDirectory is writable.", e.RequestId));
 }
Пример #2
0
 /// <summary>Event handler for unsuccessful printing</summary>
 private void WebControl_PrintFailed(object sender, PrintOperationEventArgs e)
 {
     MessageBox.Show("MyApp", "Printing failed", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
 }