Limited time promo

SetDefaultPrinter

English

This help topic applies only to novaPDF. If you don't have it yet, you must download it first.

Download now Buy licenses
Mar 22, 2022
novaPDF 11.x
We strive to keep our help as accurate as possible. If you notice any inconsistencies or outdated info please let us know.
The SetDefaultPrinter method sets the current printer (the one specified in Initialize) as default printer.
HRESULT SetDefaultPrinter( void );

Return values:

S_OK on success or COM error code
NV_NOT_INITIALIZED - Initialize was not called

Remarks:

After calling SetDefaultPrinter with an INovaPdfOptions object, call RestoreDefaultPrinter with the same object to restore the original default printer. Do not call SetDefaultPrinter twice, without calling RestoreDefaultPrinter between the calls or else the original default printer will not be restored.