The SetPrinterActivePublicProfile2 method sets an active public profile for a printer
HRESULT SetPrinterActivePublicProfile2(
[ in, string ] BSTR p_wsPrinterName,
[ in, string ] BSTR p_wsProfileId
);
Parameters:
p_wsPrinterName
[in, string] printer name
p_wsProfileId
[in, string] public profile id
Return values:
S_OK on success or COM error code
NV_SERVICE_ERROR - error connecting to novaPDF Server service
Remarks:
Sets an public profile as the active profile for the printer. All users will be forced to use this public profile, the cannot change the active profile.