This method saves the settings entered in the "Print Setup" dialog. These settings are saved into the file specified by the PrintFileName property.
[C++Builder]   [ bool = ]imagekitcontrolname->PrintDraw->SavePrinterInfo()
[Delphi]   [ Boolean = ]imagekitcontrolname.PrintDraw.SavePrinterInfo

Parameters

None

Return Value

Returns True if successful. Returns False if unsuccessful.

Explanation

The SavePrinterInfo method displays the "Print Setup" dialog and allows you to set the printer settings. When the OK button in the "Print Setup" dialog is clicked, the SavePrinterInfo method saves these setting in a file specified by the PrintFileName property. This saved file is used by the GetDevModeHandle and the PrintCreateDC methods.

At the same time, the printer name and the port are saved in another file, a text file, whose name is constructed from the value of the PrintFileName property + "PrnTxt". The first record in this text file is the printer name. The second record in this text file is the printer port. (The records are delimited by {CR}{LF}).

When the "Print Setup" dialog is closed by clicking "OK", the above two files are saved and a nonzero value is returned. If only the file name has been set in the PrintFileName property, then the printer setting files will be saved in the current directory.

The SavePrinterInfo method corresponds to the Print Control's SetPrint method in earlier versions of the ImageKit.

 

The ImageKit10 VCL is a product created by Newtone Corporation