OK... I missed two facts.. the attach gave a error 68, which is device unavailable and the Kodak is not the default printer on this laptop, but on my desktop where this will be used. So I have changed the DEFAULT to CHOOSE and all's ok,
------------------------------------------------------------------------------------------------------------------------------------------------------
The XPRINT SET TRAY statement gives a GPF.
The printer is a Kodak ESP 7 and that has a lower and upper tray.
------------------------------------------------------------------------------------------------------------------------------------------------------
The XPRINT SET TRAY statement gives a GPF.
Code:
CASE %IDC_BUTTON1 IF CBCTLMSG = %BN_CLICKED OR CBCTLMSG = 1 THEN 'printer module XPRINT ATTACH DEFAULT ' select lower tray XPRINT SET TRAY %DMBIN_LOWER
Comment