Esempio n. 1
0
        private void Barcode(object sender, EventArgs e)
        {
            if (((MainForm)this.MdiParent).ActiveMdiChild == this)
            {
                dt = workOrderService.CheckBarcode();
                BarcodeOrder rpt = new BarcodeOrder();
                rpt.DataSource = dt;

                using (ReportPrintTool printTool = new ReportPrintTool(rpt))
                {
                    printTool.ShowRibbonPreviewDialog();
                }
            }
        }