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

[C++Builder]   [ bool = ]imagekitcontrolname->PrintDraw->SaveDevModeHandle()
[Delphi]   [ Boolean = ]imagekitcontrolname.PrintDraw.SaveDevModeHandle

Parameters

None

Return Value

Returns True if successful. Returns False if unsuccessful.

Explanation

The GetDevModeHandle method retrieves the handle to the DEVMODE structure and the handle to the DEVNAMES structure and sets them into the DevMode property and DevNames property respectively. The SaveDevModeHandle method saves the handles of the DEVMODE and DEVNAMES structures 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 and DEVNAMES structures, 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 with ImageKit 7/8/9 ActiveX/VCL

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

The ImageKit10 VCL is a product created by Newtone Corporation