When HTMLPrint cannot find a file, or cannot connect to an online address or cannot open a printer an error message will be generated and it will be logged to the errorlog.txt file along with the file name or condition and the time.
Also, when HTMLPrint terminates running it returns an error code (0 if there was no error), so the calling program will get an error code number
To see the error log content and location click the File > Open Error Log File menu.
Typically errors are generated when the file or printer names are wrong or the files were deleted. When printing online files errors may be caused because the Net or the file is not accessible or because several other factors.
The error log file can hold up to 3000 lines of text, if its becomes longer, HTMLPrint will automatically erase its first 100 lines.
The error code numbers are:
THERE IS NO ERROR
CANNOT_FIND_INI (configuration file)
CANNOT_FIND_FILE
WEB_CONNECTION_REFUSED
WEB_UNKNOWN_PROTOCOL
WEB_FILE_NOT_FOUND
WEB_UNKNOWN_HOST
WEB_RESULT_NET_INTERRUPT
WEB_RESULT_NET_TIMEOUT
WEB_RESULT_MALFORMED_URI
WEB_RESULT_REDIRECT_LOOP
WEB_RESULT_UNKNOWN_SOCKET_TYPE
WEB_RESULT_NET_RESET
WEB_RESULT_DOCUMENT_NOT_CACHED
WEB_RESULT_PORT_ACCESS_NOT_ALLOWED
WEB_RESULT_UNKNOWN_PROXY_HOST
WEB_RESULT_PROXY_CONNECTION_REFUSED
CANNOT_OPEN_PRINTER
CANNOT_GET_DEFAULT_PRINTER
DIR_MON_INCORRECT
DIR_MOVE_INCORRECT
DIR_EXT_INCORRECT
CANNOT_GET_PRINTER_INFO