Exemplo n.º 1
0
        private void toolStripButtonSellectPrinting_Click(object sender, EventArgs e)
        {
            //这个是选择打印机
            //我自制力一个对话框来选择打印机,并且自动取得分辨率.

            FrmSelectPrinter f = new FrmSelectPrinter();
            if (f.ShowDialog() == DialogResult.OK)
            {

                toolStripLabelPrintingName.Text = f.strPrinterName;

                //设置到
                ClsBarcodePrint.strPrinterName = f.strPrinterName;

            }
        }
Exemplo n.º 2
0
        private void btnSelectPrinter_Click(object sender, EventArgs e)
        {
            //这个是选择打印机
            //我自制力一个对话框来选择打印机,并且自动取得分辨率.

            FrmSelectPrinter f = new FrmSelectPrinter();
            if (f.ShowDialog() == DialogResult.OK)
            {
                if (myClsXmlApp == null)
                    myClsXmlApp = new ClsXmlApp();

                //这里要保存的
                myClsXmlApp.strPrintingName = f.strPrinterName;

                lblPrinterName.Text = f.strPrinterName;

                //设置到
                ClsBarcodePrint.strPrinterName = f.strPrinterName;

                saveXmlApp();//保存

            }
        }