Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

PrinterSettings.SetHdevmode Method

Copies the relevant information out of the given handle and into the PrinterSettings.

Namespace:  System.Drawing.Printing
Assembly:  System.Drawing (in System.Drawing.dll)

public void SetHdevmode(
	IntPtr hdevmode
)

Parameters

hdevmode
Type: System.IntPtr

The handle to a Win32 DEVMODE structure.

ExceptionCondition
ArgumentException

The printer handle is not valid.

DEVMODE structures are device specific and copying a DEVMODE structure from one PrinterSettings to a PrinterSettings for a different printer is not supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Show:
© 2015 Microsoft