When the Direct_Print function returns a value that is less than 0, then a error has occurred. Here is a list of the error codes that are returned by the Direct_Print function.

Return codeError
-1A subsequent START message was sent prior to a previous report's STOP message was invoked.
-2Unable to initialize printer. The printer name may be incorrect of the printer is not avaible
-3, -4Problems starting the report.
-5, -6Problems stopping the report.
-7Error with printing data - fatal error sending data to the printer.
-8Error with printing data - wrong number of bytes sent to the printer.
-9, -10Error occurred sending the PAGE message
-11Problems aborting the report.
-12The Direct_Print function was called prior to the START message being invoked.
  • No labels