Limited time promo

RestoreDefaultPrinter

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 RestoreDefaultPrinter method restores the default printer to the printer that was default before calling SetDefaultPrinter.
HRESULT RestoreDefaultPrinter( void );
Parameters:
none

Return values:

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

Remarks:

After calling SetDefaultPrinter with an INovaPdfOptions object, call RestoreDefaultPrinter with the same object to restore the original default printer.