GetDocJavaScriptA

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 GetDocJavaScript and string arguments are interpreted using the current SetAnsiMode code page

Retrieves the JavaScript linked to a specified document action.

Syntax

Delphi

Function DLGetDocJavaScriptA(InstanceID: Integer; ActionType: PAnsiChar): PAnsiChar;

DLL

const char* DLGetDocJavaScriptA(int InstanceID, const char* ActionType);

Parameters

ActionTypeRetrieve the JavaScript linked to this action: "DC" = Document close "WS" = Will save "DS" = Did save "WP" = Will print "DP" = Did print