ReplaceUserSettings

Replaces the existing printer settings for either the current user or all users on the system.  This function will read the new printer settings from the specified printer’s INI file.  If you want to specify a specific devmode to use as the new printer settings, use the CreateDefaultSettings and ClearUserSettings

 

ReplaceUserSettings(szPrinterName As String, bAllUsers As Bool) As Bool

 

Input value: szPrinterName         - Printer Name (string).

Input value: bAllUsers                  - If True replaces user settings globally, if false applies to current user only.

Return value                                                - TRUE if successfully updated, otherwise FALSE.