コード例 #1
0
        public XFrmPrinterText()
        {
            InitializeComponent();
            carregarListaImpressoras();

            this.util = new PrinterTextUtil(TypePrinter.Documento, this.txtImpressao.Text);
            openFileDialog1.Filter = FileManagerIts.DocumentFilter;
        }
コード例 #2
0
        private void carregarListaImpressoras()
        {
            cbImpressoras.Properties.Items.Clear();

            PrinterTextUtil.GetPrinters().ForEach(delegate(String impressora)
            {
                cbImpressoras.Properties.Items.Add(impressora);
            });
        }