I've searching a lot and I've found here examples with Posexplorer but my printer is usb and I've read that PosExplorer is for parallel. I don't know how to print with the printer and how to send the code to printer to open the drawer.
I'm using to send escape sequence to the printer the following code:
string ESC = Convert.ToString((char)27);
string logo=Convert.ToString(ESC+"|tL");
_oposPrinter.PrintNormal(PrinterStation.Receipt, logo);
_oposPrinter.PrintNormal(PrinterStation.Receipt, "Print example\n");
_oposPrinter.PrintNormal(PrinterStation.Receipt, Convert.ToString((char)27 + "|#fP"));
When debugging and reaches the lines:
_oposPrinter.PrintNormal(PrinterStation.Receipt, logo);
or
_oposPrinter.PrintNormal(PrinterStation.Receipt, Convert.ToString((char)27 + "|#fP"));
The printer doesn't prints anything.