This method saves the handle to the DEVMODE structure into the file specified by the PrintFileName property.

[Visual Basic]   [ Boolean = ]imagekitcontrolname.PrintDraw.SaveDevModeHandle
[Visual C++]     [ BOOL = ]imagekitcontrolname.GetPrintDraw().SaveDevModeHandle()
[VB.NET]   [ Boolean = ]imagekitcontrolname.PrintDraw.SaveDevModeHandle()
[C#.NET]   [ bool = ]imagekitcontrolname.PrintDraw.SaveDevModeHandle()

Parameters

None

Return Value

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

Explanation

The GetDevModeHandle method retrieves the handle to the DEVMODE structure and sets it into the DevMode property. The SaveDevModeHandle method saves the handle to the DEVMODE structure into the file specified by the PrintFileName property. The file format of the file is the same as that saved by the SavePrinterInfo method. The saved file can be used by the GetDevModeHandle, PrintCreateDC, and the SavePrinterInfo methods. For more information about the DEVMODE structure, please refer to WindowsAPI or related manuals. If the PrintFileName property has been set with just a file name then the printer file will be saved in the current folder.

The ImageKit9 ActiveX is a product created by Newtone Corporation