Creates a handle to a DEVMODE structure which correspond to the printer and page settings. When you are done with the handle, you must deallocate it yourself: Windows.GlobalFree(handle); Where "handle" is the return value from this method.
[Visual Basic] Overloads Public Function GetHDEVMODE( _ ByVal pageSettings As PageSettings _ ) As Integer [C#] public int GetHDEVMODE( PageSettings pageSettings ); [C++] public: int GetHDEVMODE( PageSettings* pageSettings ); [JScript] public function GetHDEVMODE( pageSettings : PageSettings ) : int;
PrinterSettings Class | PrinterSettings Members | System.Drawing.Printing Namespace | PrinterSettings.GetHDEVMODE Overload List