Beispiel #1
0
        private void btnInformacoesCliente_Click(object sender, EventArgs e)
        {
            var rowHandle = gridView1.FocusedRowHandle;
            var cod       = gridView1.GetRowCellValue(rowHandle, "IDFCFO");

            relInfoCliente report = new relInfoCliente(cod.ToString());

            using (ReportPrintTool printTool = new ReportPrintTool(report))
            {
                printTool.ShowPreviewDialog();
            }
        }
Beispiel #2
0
        private void btnInformacoesCliente_Click_1(object sender, EventArgs e)
        {
            var rowHandle = gridView1.FocusedRowHandle;
            var cod       = gridView1.GetRowCellValue(rowHandle, "IDFCFO");

            if (cod != null)
            {
                relInfoCliente report = new relInfoCliente(cod.ToString());

                using (ReportPrintTool printTool = new ReportPrintTool(report))
                {
                    printTool.ShowPreviewDialog();
                }
            }
            else
            {
                MessageBox.Show("Por favor, selecione um registro", "Aviso", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }