This topic has not yet been rated - Rate this topic

PrintControllerWithStatusDialog.OnEndPrint Method

This method supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Completes the control sequence that determines when and how to print a document.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public override void OnEndPrint (
	PrintDocument document,
	PrintEventArgs e
)
public void OnEndPrint (
	PrintDocument document, 
	PrintEventArgs e
)
public override function OnEndPrint (
	document : PrintDocument, 
	e : PrintEventArgs
)

Parameters

document

A PrintDocument that represents the document currently being printed.

e

A PrintPageEventArgs that contains the event data.

The PrintControllerWithStatusDialog class calls the PrintController.OnEndPrint method on the encapsulated PrintController.

The OnEndPrint method is called immediately after the PrintDocument raises the EndPrint event.

The OnStartPrint method creates the Graphics object that is sent to the printer. After OnStartPrint is called, the OnStartPage method sets the Graphics object to a graphic of a single page. (Use OnStartPrint to determine when and how to print a document. For example, you can delay printing for 30 minutes or adjust the printer settings for the document.) The OnEndPage method clears the Graphics object, while OnEndPrint deallocates the object.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.