This help topic applies only to novaPDF. If you don't have it yet, you must download it first.
Download now Buy licenses
Adrian (Softland)
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 AddAction2 method adds an action
HRESULT AddAction2(
[in] LONG p_nType,
[in, string] BSTR p_wsActionName,
[out, string] BSTR* p_pwsNewActionId,
[out] LONG* p_pnIndex
);
Parameters:
p_nType
[in] action type (1-copy, 2- delete, 3 - MAPI email, 4 - SMTP email, 6 - open, 7 - run application, 8 - FTP, 9 - SFTP)
p_wsActionName
[in] action name
p_pwsNewActionId
[out] action id
p_pnIndex
[out] action index
Return values:
S_OK
on success or COM
error codeNV_NOT_INITIALIZED
- Initialize was not calledNV_UNKNOWN_PROFILE
- no profile loadedNV_INVALID_OPTION
- wrong action typeRemarks:
This method adds a new action at the end of the list of actions. After adding an action. you can change action position in the list and set specific options for each action type.