System.Drawing.Printing.PrintDocument.DocumentName Property

Gets or sets the document name to display (for example, in a print status dialog box or printer queue) while printing the document.

Syntax

[System.ComponentModel.DefaultValue("document")]
public string DocumentName { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The PrintDocument.DocumentName property does not specify the file to print. Rather, you specify the output to print by handling the PrintDocument.PrintPage event. For an example, see the System.Drawing.Printing.PrintDocument class overview.

Requirements

Namespace: System.Drawing.Printing
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0