Limited time promo

SetActiveProfile2

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

Parameters:

p_wstrProfileName
[in] pointer to a BSTR 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_wstrProfileId 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