|
||
int print_save_settings ( const char *filepath )
const char *filepath; // Pointer to a null-terminated character string
|
|
|||
Synopsis |
#include "silver.h"
The print_save_settings function saves the print and page settings of the current printer to a file.
|
|
||
Parameters |
filepath is a path to a printer settings file.
|
|
||
Return Value |
print_save_settings returns TRUE if the settings are successfully saved to the file, and FALSE otherwise. |
|
||
Remarks |
The default file extension for a printer settings file is .pts. The default location for a printer settings file is the home directory.
If filepath specifies a path to an existing file it will be overwritten with the new settings.
|
|
||
See Also |
print_load_settings, printer_get_name, path_home
|
|
||
Example |
The following code saves the current printer settings and page-setup options to the file default.pts in the home directory:
|
|