Beispiel #1
0
 public void PrintCentralizedText(int Bold, int Expanded, int Font, int Italic,
                                  int Underline, string Text)
 {
     MP32.ComandoTX("\x1B\x61\x1", 3);
     MP32.FormataTX(Text, Font, Italic, Underline, Expanded, Bold);
     MP32.ComandoTX("\x1B\x61\x0", 3);
 }
Beispiel #2
0
 public int SetupPrinterConnection()
 {
     printer.LoadPrinter();
     return(MP32.IniciaPorta(printer.Port));
 }
Beispiel #3
0
 public int SetupPrinterModel()
 {
     printer.LoadPrinter();
     return(MP32.ConfiguraModeloImpressora(printer.Model));
 }
Beispiel #4
0
 public int GetPrinterStatus()
 {
     return(MP32.Le_Status());
 }
Beispiel #5
0
        /* SETUP -------------------------------------------------------------------------------- */

        public int ClosePrinterConnection()
        {
            return(MP32.FechaPorta());
        }
Beispiel #6
0
        /* COMMAND ------------------------------------------------------------------------------ */


        public void SendCommand(string command, int length)
        {
            MP32.ComandoTX(command, length);
        }
Beispiel #7
0
 public int PrintText(int Bold, int Expanded, int Font, int Italic, int Underline,
                      string Text)
 {
     return(MP32.FormataTX(Text, Font, Italic, Underline, Expanded, Bold));
 }
Beispiel #8
0
        /* PRINTER ------------------------------------------------------------------------------ */

        public void PrintBreakLine()
        {
            MP32.ComandoTX("\xA\xD", 2);
        }
Beispiel #9
0
 public int CutPaper()
 {
     return(MP32.AcionaGuilhotina(1));
 }
Beispiel #10
0
        /* CUT PAPER ---------------------------------------------------------------------------- */

        public int CutPaperPartially()
        {
            return(MP32.AcionaGuilhotina(0));
        }