Hide

SftPrintPreview/OCX 1.0 - ActiveX Print Preview Control

Display
Print

SftPrintPreview.GetDeviceInfo Method

Returns DEVMODE and DEVNAMES handles for the currently defined printer.

Syntax

VB.NETobject.GetDeviceInfo(ByRef hDevNames As Integer, ByRef hDevMode As Integer, ByRef vOwned As Boolean)
VBobject.GetDeviceInfo(hDevNames As Long, hDevMode As Long, vOwned As Boolean)
C#.NETvoid object.GetDeviceInfo(out int hDevNames, out int hDevMode, out bool vOwned);
VC++HRESULT object->GetDeviceInfo(long* hDevNames, long* hDevMode, VARIANT_BOOL* vOwned);
CHRESULT object->raw_GetDeviceInfo(long* hDevNames, long* hDevMode, VARIANT_BOOL* vOwned);

object

A SftPrintPreview object.

hDevNames

Returns the handle of a DEVNAMES structure defining the current printer.

hDevMode

Returns the handle of a DEVMODE structure defining the current printer.

vOwned

Returns True if the handles are owned by SftPrintPreview/OCX, False otherwise.

Comments

The GetDeviceInfo method returns DEVMODE and DEVNAMES handles for the currently defined printer.

DEVMODE and DEVNAMES handles are used by Windows to define the current printer and its settings.

See Also SftPrintPreview Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.