I find it best to have a seperate function(popdrawer() in my code) to pop the drawer. This is a seperate print job that gets spooled seperately-- it's cleanest this way. Send your receipt/invoice to the printer right after popping the drawer-- in a seperate print job. This way the cashier can handle the money while the receipt is printing(for a 200 or 300 this can take a couple seconds-- whereas the new thermals are almost instantaneous).
>Thank you for the answer, it realy worked.
>But i still have a problem, before i print the invoice to the printer i'm sending the cash drawer comand it opens the cash drawer but spools the print job.When i print the next invoice it prints the spooled job and don't opens the cash drawer. How should i set the spooler options and do i need a special seting or comand in Fox. ( if i set the spooler to directly print to the printer it gives me a error in Fox.
>
>Thanks for you help and have a great new year.
>Kilian
Derek J. Kalweit
Software Engineer
Microworks POS Solutions, Inc.