PageSettings.SetHdevmode(IntPtr) Method

Definition

Copies relevant information to the PageSettings from the specified DEVMODE structure.

public:
 void SetHdevmode(IntPtr hdevmode);
public void SetHdevmode (IntPtr hdevmode);
member this.SetHdevmode : nativeint -> unit
Public Sub SetHdevmode (hdevmode As IntPtr)

Parameters

hdevmode
IntPtr

nativeint

The handle to a Win32 DEVMODE structure.

Exceptions

The printer handle is not valid.

The printer named in the PrinterName property does not exist or there is no default printer installed.

Remarks

Use this method to copy relevant information in a DEVMODE structure to the PageSettings.

To copy information from the PageSettings to a DEVMODE, call CopyToHdevmode.

Applies to

See also