Error log

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:

 

    1. THERE IS NO ERROR

    2. CANNOT_FIND_INI (configuration file)

    3. CANNOT_FIND_FILE

    4. WEB_CONNECTION_REFUSED

    5. WEB_UNKNOWN_PROTOCOL

    6. WEB_FILE_NOT_FOUND

    7. WEB_UNKNOWN_HOST

    8. WEB_RESULT_NET_INTERRUPT

    9. WEB_RESULT_NET_TIMEOUT

    10. WEB_RESULT_MALFORMED_URI

    11. WEB_RESULT_REDIRECT_LOOP

    12. WEB_RESULT_UNKNOWN_SOCKET_TYPE

    13. WEB_RESULT_NET_RESET

    14. WEB_RESULT_DOCUMENT_NOT_CACHED

    15. WEB_RESULT_PORT_ACCESS_NOT_ALLOWED

    16. WEB_RESULT_UNKNOWN_PROXY_HOST

    17. WEB_RESULT_PROXY_CONNECTION_REFUSED

    18. CANNOT_OPEN_PRINTER

    19. CANNOT_GET_DEFAULT_PRINTER

    20. DIR_MON_INCORRECT

    21. DIR_MOVE_INCORRECT

    22. DIR_EXT_INCORRECT

    23. CANNOT_GET_PRINTER_INFO