This property refers to the handle to the specified printer's DEVMODE structure.

[Visual Basic]   imagekitcontrolname.PrintDraw.DevMode [ = LONG_PTR ]
[Visual C++]     [ LONG_PTR = ]imagekitcontrolname.GetPrintDraw().GetDevMode()
                 imagekitcontrolname.GetPrintDraw().SetDevMode(LONG_PTR Val)
[VB.NET]   imagekitcontrolname.PrintDraw.DevMode [ = Integer(x86) or Long(x64) ]
[C#.NET]   imagekitcontrolname.PrintDraw.DevMode [ = int(x86) or long(x64) ]

* (x86) refers to the 32 bit version, (x64) refers to the 64 bit version.

Property Value

The handle to the specified printer's DevMode structure

Explanation

The DevMode refers to the handle to the specified printer's DEVMODE structure. (The DEVMODE structure stores information about various settings and properties of a device, such as a printer.) It is through the DevMode property that other print control properties such as Collate, ColorMode, Copies, CustomPaperHeight, CustomPaperWidth, Duplex, Orientation, PaperBin, PaperSize, XResolution, YResolution, Zoom are retrieved and set.

Executing the GetDevModeHandle method or the PrintDialog method will retrieve the handle for the specified printer's DEVMODE structure.

The memory block referred to by the DevMode property (the memory block that stores the information about various printer settings and properties) can be freed by executing the ReleaseDevModeHandle method (The DevMode property value will become 0 or NULL).

For more information about the DEVMODE structure, please refer to WindowsAPI or related manuals.

Setting this value

This value can be set.

Retrieving this value

This value can be retrieved at runtime.

Differences between ImageKit7/8

This property's type has changed.

Differences between ImageKit7/8/9

This property value can be set.

The ImageKit10 ActiveX is a product created by Newtone Corporation