PrintDialog::PrintDocument Method (DocumentPaginator^, String^)
.NET Framework (current version)
Prints a DocumentPaginator object to the PrintQueue that is currently selected.
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
Available since 3.0
Show: