SetOpenActionMenuA

Document properties

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to SetOpenActionMenu and string arguments are interpreted using the current SetAnsiMode code page

Specifies an Acrobat menu item to execute when the document is first loaded.

Syntax

Delphi

Function DLSetOpenActionMenuA(InstanceID: Integer; MenuItem: PAnsiChar): Integer;

DLL

int DLSetOpenActionMenuA(int InstanceID, const char * MenuItem);

Parameters

MenuItemThe menu item which should be executed, for example "print"

Return values

0The open action could not be set
1The open action was set successfully