DocJavaScriptAction

Documenteigenschappen, JavaScript

Beschrijving

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 TPDFlib.DocJavaScriptAction(Const ActionType, JavaScript: WideString): Integer;

ActiveX

Function PDFlib::DocJavaScriptAction(ActionType As String, JavaScript As String) As Long

DLL

int DLDocJavaScriptAction(int InstanceID, const wchar_t* ActionType, const wchar_t* JavaScript);
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