PrintDialog::PrintDocument Method (DocumentPaginator^, String^)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Prints a DocumentPaginator object to the PrintQueue that is currently selected.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public:
[SecurityCriticalAttribute]
void PrintDocument(
	DocumentPaginator^ documentPaginator,
	String^ description
)

Parameters

documentPaginator
Type: System.Windows.Documents::DocumentPaginator^

The DocumentPaginator object to print.

description
Type: System::String^

A description of the job that is to be printed. This text appears in the user interface (UI) of the printer.

Exception Condition
ArgumentNullException

documentPaginator is null.

.NET Framework
Available since 3.0
Return to top
Show: