Your printer you use to open cash drawer needs to be set to use ESC/POS mode, not HTML printer mode. You will need to create 2 printers in SambaPOS that link to the same Windows printer - one in ESC/POS mode for cash drawer, the other in HTML mode for printing receipt.