GetWorkflowToolsError
Workflow data tools, ActiveX, DLL
Description
Returns the reason recorded by the most recent workflow data tools call on the instance, or an empty string after a successful call
Syntax
ActiveX
Function PDFlib::GetWorkflowToolsError() As StringDLL
const wchar_t* DLGetWorkflowToolsError(int InstanceID);
const char* DLGetWorkflowToolsErrorA(int InstanceID);
Parameters
| InstanceID | Library instance returned by DLCreateLibrary |
|---|
Return values
Returns the reason as a borrowed string; an empty string means the last workflow tools call succeeded. Reading the reason does not clear it
Remarks
JSON errors include the line and column; page selection errors include the error code and character position; JSON Patch errors name the failing operation
Only the workflow data tools functions update this value; other DLL functions continue to report through DLLastErrorCode
ActiveX exposes this method on IPDFlibrary24; obtain it with CoPDFlibrary.CreateEditionTools24 or query the default interface of PDFlibAX 4.74 or later
All editions include these functions. Failed ActiveX calls return an empty string, 0 or Empty and record the reason for GetWorkflowToolsError. The C#, VB.NET and Visual C++ WorkflowTools examples in the DLL and ActiveX demo folders show a complete request, page plan and rollback workflow
See also
Workflow data tools · Virtual file registry · GetWorkflowToolsError