This function saves the handle to the DEVMODE structure into the file specified by the PrintFileName parameter.

[C++Builder/Visual C++]     BOOL IKGetDevModeHandle(LPCTSTR PrinterName, HANDLE hDevMode);
[Delphi]         function IKGetDevModeHandle(PrinterName: PChar; hDevMode: THandle) LongBool;
[Visual Basic]   Function IKGetDevModeHandle(ByVal PrinterName As String, ByVal hDevMode As Long) As Long

Parameters

Name Explanation
PrintFileName The filename of the file containing the printer settings to be saved
hDevMode The handle of the DEVMODE structure retrieved by the IKGetDevModeHandle, IKGetDevModeHandleEx, and IKPrintDialog functions

Return Value

Returns True (nonzero) if successful. Returns False (0) if unsuccessful.

Explanation

The IKSaveDevModeHandle function saves the handle to the DEVMODE structure into the file specified by the PrintFileName parameter. The file format of the file is the same as that saved by the IKSetPrint function. The saved file can be used by the IKGetDevModeHandle, IKGetDevModeHandleEx, IKPrintCreateDC, IKPrintCreateDCEx, and the IKSetPrint functions. For more information about the DEVMODE structure, please refer to WindowsAPI or related manuals.

The ImageKit10 ActiveX is a product created by Newtone Corporation