PrintTicket.PageResolution Property

Definition

Gets or sets the level of page resolution that the printer uses for a print job.

C#
public System.Printing.PageResolution PageResolution { get; set; }

Property Value

A PageResolution value that represents the resolution as a qualitative value, a dots-per-inch value, or both.

Exceptions

Calling code has attempted to set the property with a PageResolution object that has at least one null property.

-or-

Calling code has attempted to set the property with a PageMediaSize object whose QualitativeResolution property is set to a value that is not in the PageQualitativeResolution enumeration.

-or-

Calling code has attempted to set the property with a PageResolution object whose X or Y property is set to a value less than 1.

Remarks

The PageResolution class has properties in which you can specify the dots-per-inch for the X and Y dimensions and a property where you can give a qualitative expression to the resolution.

This property corresponds to the Print Schema's PageResolution keyword.

You can test for the options that the printer supports by using the PageResolutionCapability property.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

See also