SilverScreen Solid Modeler

print_save_settings

print_save_settings

Previous topic Next topic  

print_save_settings

Previous topic Next topic JavaScript is required for the print function  

 

SilverScreenAPI

 

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:

C / C++ Code

 

 

 #include "silver.h"

 

 . . .

 

 if ( ! print_save_settings("default") )

    error_message("There was an error saving printer settings");