DocJavaScriptActionA

Documenteigenschappen, JavaScript

Beschrijving

De afsluitende A geeft het ANSI (char)-DLL-entrypoint aan; het ActiveX/COM-oppervlak biedt alleen de Unicode-vorm. Het gedrag is identiek aan DocJavaScriptAction en stringargumenten worden geïnterpreteerd volgens de huidige SetAnsiMode-codepagina

Deze functie wordt gebruikt om JavaScript toe te voegen aan documentevents. Deze JavaScript wordt uitgevoerd wanneer bijvoorbeeld het document wordt gesloten of afgedrukt

Syntaxis

Delphi

Function DLDocJavaScriptActionA(InstanceID: Integer; ActionType, JavaScript: PAnsiChar): Integer;

DLL

int DLDocJavaScriptActionA(int InstanceID, const char* ActionType, const char* JavaScript);

Parameters

ActionTypeDe event waaraan de JavaScript wordt gekoppeld: "WC" = vóór sluiten "WS" = vóór opslaan "DS" = na opslaan "WP" = vóór afdrukken "DP" = na afdrukken
JavaScriptDe aan het event te koppelen JavaScript

Retourwaarden

0De opgegeven ActionType was ongeldig
1De JavaScript is met succes toegevoegd