SetHdevmode Method
Collapse the table of content
Expand the table of content

PrinterSettings.SetHdevmode Method (IntPtr)

 

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.

Exception Condition
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.

PrintingPermission

for printing and access to all printers on the network. Associated enumeration: PrintingPermissionLevel.AllPrinting

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft