Changing the printer driver settings for a user

 

The Printer Driver settings can be changed through the API. These changes are permanent; the changes will be visible in the Printer Driver Printing Preferences. The Printer Driver settings can be changed by using functions of the Global Printer Driver Settings. The changes will effect only the current user.

 

Printer Driver settings can be changed with the following functions:

- BlackIceDEVMODE*     LoadBlackIceDEVMODE(LPCWSTR printername);

 

- SaveBlackIceDEVMODE(LPWSTR szPrinterName, BlackIceDEVMODE* pDevMode);

 

Please see the description of the “Change Printer Driver settings” samples in the RTK. This sample available in C++, C#, VB.NET, Delphi programming languages and demonstrates how to use the BlackIceDEVMODE. functions. The sample shows how to programmatically change the printer settings a simple user interface.

 

 

The ‘PrinterSettings’ program allows users to change the settings of the Black Ice printers.

 

There are five buttons in the form:

   OK:                          saves the settings and exits the program.

   Cancel:                   exits the program without changing the printer settings

   Apply:                      saves the settings without exiting. You can continue modify the controls.

   Open printer:         closes the currently opened printer and tries to open the printer specified in

the “Printer Name” edit box.