Limited time promo

SetActiveProfile

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 SetActiveProfile sets the active profile (i.e. the profile that will be used for printing).
HRESULT SetActiveProfile(
[ in ] LPCWSTR p_wsProfileId
);

Parameters:

p_wsProfileId
[in] pointer to a null terminated Unicode string that contains the id of the profile that is to be set as active

Return values:

S_OK on success or COM error code
NV_NOT_INITIALIZED - Initialize was not called
NV_UNKNOWN_PROFILE - the profile specified by p_wsProfileId does not exist
NV_PUBLIC_PROFILE - active profile cannot be change due to propagate active profile flag
NV_PROFILE_ERROR - private active profile cannot be set because private profiles are not allowed