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