Example #1
0
        private void btn_print_Click(object sender, System.EventArgs e)
        {
            string Report = MountReport();

            printerControl.PrintMultilineText(0, false, 0, 2, 0, 0, Report);
            printerControl.CutPaper();
        }
Example #2
0
        private void btn_testPrinter_Click(object sender, EventArgs e)
        {
            printerControl.SetupPrinterModel();
            printerControl.SetupPrinterConnection();

            printerControl.PrintText(
                printer.Bold,
                printer.Expanded,
                printer.Font,
                printer.Italic,
                printer.Underline,
                "Teste de Impressão"
                );

            printerControl.CutPaper();
        }