Version

OnPrinted Method

Raises the Printed event.
Syntax
'Declaration
 
Protected Overridable Sub OnPrinted( _
   ByVal e As EventArgs _
) 
protected virtual void OnPrinted( 
   EventArgs e
)

Parameters

e
An System.EventArgs that contains the event data.
Example
The following code gets called after a print operation ends from the UltraPrintPreviewDialog.

For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.

Imports Infragistics.Win
Imports Infragistics.Win.Printing
Imports Infragistics.Win.UltraWinGrid
Imports Infragistics.Win.UltraWinScrollBar
Imports Infragistics.Win.UltraWinToolbars

    Private Sub ultraPrintPreviewDialog1_Printed(ByVal sender As Object, ByVal e As System.EventArgs) Handles ultraPrintPreviewDialog1.Printed

        ' cast the sender to a UltraPrintPreviewDialog
        Dim printPreviewDialog As UltraPrintPreviewDialog = CType(sender, UltraPrintPreviewDialog)

        ' occurs after the print operation has completed

    End Sub
using Infragistics.Win;
using Infragistics.Win.Printing;
using Infragistics.Win.UltraWinGrid;
using Infragistics.Win.UltraWinScrollBar;
using Infragistics.Win.UltraWinToolbars;

		private void ultraPrintPreviewDialog1_Printed(object sender, System.EventArgs e)
		{
			// cast the sender to a UltraPrintPreviewDialog
			UltraPrintPreviewDialog printPreviewDialog = sender as UltraPrintPreviewDialog;

			// occurs after the print operation has completed
		}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also