|
|
|
|
|
SftPrintPreview.SetDeviceInfo Method |
Sets DEVMODE and DEVNAMES handles for the currently defined printer.
Syntax
|
VB.NET |
object.SetDeviceInfo(ByVal hDevNames As Integer, ByVal hDevMode As Integer) |
||
|
VB |
object.SetDeviceInfo(ByVal hDevNames As Long, ByVal hDevMode As Long) |
||
|
C#.NET |
void object.SetDeviceInfo(int hDevNames, int hDevMode); |
||
|
VC++ |
HRESULT object->SetDeviceInfo(long hDevNames, long hDevMode); |
||
|
C |
HRESULT object->raw_SetDeviceInfo(long hDevNames, long hDevMode); |
||
|
Delphi |
procedure object.SetDeviceInfo(hDevNames : Integer, hDevMode : Integer); |
object
A SftPrintPreview object.
hDevNames
The handle of a DEVNAMES structure defining the current printer.
hDevMode
The handle of a DEVMODE structure defining the current printer.
Comments
The SetDeviceInfo method sets DEVMODE and DEVNAMES handles for the currently defined printer.
The handles hDevNames and hDevMode are owned by SftPrintPreview/OCX and are destroyed when no longer needed.
The SetDeviceInfo2 method can be used to set DEVMODE and DEVNAMES handles without transferring ownership of the handles to SftPrintPreview/OCX.
DEVMODE and DEVNAMES handles are used by Windows to define the current printer and its settings.