Toolkit Return Results and Error Codes


Return results for Toolkit are specific for each property or method.


See the entry for the property or method in the Toolkit Reference Manual for specific information about return values for a property or method.


Most common return error:

  • -998 = Toolkit is not licensed. (Check License Manager)
  • -1 = Unable to open input or output file. (Usually a permissions issue)
  • -2 = Unable to open input file, the user password is invalid. (Toolkit 8.1.4+)
  • -3 = Unable to open input file, the owner password is invalid. (Toolkit 8.1.4+)


Some methods provide Extended information:


Note: To get Windows API error information, call the Microsoft Windows API function, GetLastError:

https://msdn.microsoft.com/en-us/library/windows/desktop/ms679360(v=vs.85).aspx


Then check the appropriate error code list:

https://msdn.microsoft.com/en-us/library/windows/desktop/ms681381(v=vs.85).aspx