This method saves the handle to the DEVMODE structure and the DEVNAMES 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 SaveDevModeHandle method saves the handle to the DEVMODE structure and the DEVNAMES structure into the file specified by the PrintFileName property. The GetDevModeHandle method retrieves the handle to the DEVMODE structure and the DEVNAMES structure and sets them into the DevMode property and the DevNames property respectively. 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 and the DEVNAMES 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.

Differences between ImageKit7/8/9

If this method succeeds, the information indicated by the DevNames property in addition to the DevMode property is saved in the file.

The ImageKit10 ActiveX is a product created by Newtone Corporation