Example #1
0
        private void Dashboard_Load(object sender, EventArgs e)
        {
            printer = printer.LoadPrinter();
            printerControl.SetupPrinterModel();
            printerControl.SetupPrinterConnection();

            PopulateStartComboboxes();
            PopulateFinishComboboxes();
            PopulateGrid();
            Clear();
        }
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();
        }