Exemplo n.º 1
0
        public void PrintSale(Sale sale, string invoice_number)
        {
            try
            {
                Image myimg = Code128Rendering.MakeBarcodeImage(invoice_number, 2, true);
                myimg.Save(mAccountant.GetFullPath("Images/barcode_sale.png"));
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

            Accounting.Report.Sales.SalePrintPresenter report_presenter = new Accounting.Report.Sales.SalePrintPresenter(mAccountant, sale);
            mSalePresenter.PrintSale(report_presenter);
        }
        public void PrintSale(Accounting.Report.Sales.SalePrintPresenter report_presenter)
        {
            BaseView frm = new DacII.WinForms.Sales.Reports.FrmSale(mApplicationController, report_presenter);

            SetCurrentForm(frm);
        }