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

 

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: