예제 #1
0
        private void btnRelatorio_Click(object sender, EventArgs e)
        {
            //FrmRelVenda relVenda = new FrmRelVenda();
            //relVenda.ShowDialog();
            frmImprimirVenda imprimirVenda = new frmImprimirVenda("report");

            imprimirVenda.ShowDialog();
        }
예제 #2
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            if (dgvConsultarVendas.RowCount > 0)
            {
                codigo_venda = Convert.ToInt32(dgvConsultarVendas.SelectedCells[0].Value);

                frmImprimirVenda imprimirVenda = new frmImprimirVenda("xml");
                imprimirVenda.ShowDialog();
            }
        }