SetOpenActionJavaScriptA
Document properties, JavaScript
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to SetOpenActionJavaScript and string arguments are interpreted using the current SetAnsiMode code page
Use this function to run a block of JavaScript as the document is opened.
Syntax
Delphi
Function DLSetOpenActionJavaScriptA(InstanceID: Integer; JavaScript: PAnsiChar): Integer;
DLL
int DLSetOpenActionJavaScriptA(int InstanceID, const char* JavaScript);
Parameters
| JavaScript | The JavaScript to use for this action. |
|---|
Return values
| 0 | The JavaScript could not be added |
|---|---|
| 1 | The JavaScript was added successfully |