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); }
public int SetupPrinterConnection() { printer.LoadPrinter(); return(MP32.IniciaPorta(printer.Port)); }
public int SetupPrinterModel() { printer.LoadPrinter(); return(MP32.ConfiguraModeloImpressora(printer.Model)); }
public int GetPrinterStatus() { return(MP32.Le_Status()); }
/* SETUP -------------------------------------------------------------------------------- */ public int ClosePrinterConnection() { return(MP32.FechaPorta()); }
/* COMMAND ------------------------------------------------------------------------------ */ public void SendCommand(string command, int length) { MP32.ComandoTX(command, length); }
public int PrintText(int Bold, int Expanded, int Font, int Italic, int Underline, string Text) { return(MP32.FormataTX(Text, Font, Italic, Underline, Expanded, Bold)); }
/* PRINTER ------------------------------------------------------------------------------ */ public void PrintBreakLine() { MP32.ComandoTX("\xA\xD", 2); }
public int CutPaper() { return(MP32.AcionaGuilhotina(1)); }
/* CUT PAPER ---------------------------------------------------------------------------- */ public int CutPaperPartially() { return(MP32.AcionaGuilhotina(0)); }