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