Nileksh:
Can you tell us more about your environment? It looks as though you have specified a "Letter" size document (8.5x11 inches). Normally, the printers that can open cash drawers with this command are receipt printers, usually 80mm (3.125 inches) or less, with a continuous roll of paper. They are attached to the cash drawer with a cable that sends a voltage pulse to the drawer, allowing it to open.
What printer are you sending this to?
What cash register?
Additionally, the command to open the cash drawer that you have is for raw printing in ESCP only. We use this code with printers that are compatible with ESCP (ESC/POS, ESCP2, et cetera), and the printer must be set up as a raw (generic/text-only) queue to process these commands. Some such printers are Epson, Citizen, and Star, but there are many others.
Alternately, you may modify the driver for your printer to send a voltage pulse after the job is complete. This is done via the PC to which the printer is connected.
Mixing Pixel-based printing with Raw printing is possible, but you must use separate print functions for it to work properly.
Once we know what equipment you are working with, we can better advise you on the function you need to execute. We look forward to your reply.
Note: if your cash drawer is USB, then the implementation will be different, as a separate device must be found. I will elaborate if this is the case.
Kind regards,
Lite Finocchiaro
VP, QZ Industries, LLC