Example #1
0
        private void _Mtd_MostrarReporte()
        {
            string      _Str_Ajuste;
            REPORTESS   Frm_Reporte;
            PrintDialog _Print = new PrintDialog();

            Cursor = Cursors.WaitCursor;

            if (_Print.ShowDialog() == DialogResult.OK)
            {
                if (_Tab_Fichas.SelectedTab.TabIndex == 1)
                {
                    _Str_Ajuste = _Dtg_GridAjustesSalida.CurrentRow.Cells[0].Value.ToString();

                    Frm_Reporte = new REPORTESS(new string[] { "VST_AJUSTESAL_RPT" }, "", "T3.Report.rAjtSalida",
                                                "Section1", "cabecera", "rif", "nit",
                                                "ccompany='" + Frm_Padre._Str_Comp + "' AND cajustsal='" +
                                                _Str_Ajuste + "'", _Print, true);
                }
                else
                {
                    _Str_Ajuste = _Dtg_GridAjustesEntrada.CurrentRow.Cells[0].Value.ToString();

                    Frm_Reporte = new REPORTESS(new string[] { "VST_AJUSTEENT_RPT" }, "", "T3.Report.rAjtEntrada",
                                                "Section1", "cabecera", "rif", "nit",
                                                "ccompany='" + Frm_Padre._Str_Comp + "' AND cajustent='" +
                                                _Str_Ajuste + "'", _Print, true);
                }

                Frm_Reporte.crystalReportViewer1.ShowExportButton        = false;
                Frm_Reporte.crystalReportViewer1.ShowGroupTreeButton     = false;
                Frm_Reporte.crystalReportViewer1.ShowPageNavigateButtons = false;
                Frm_Reporte.WindowState = FormWindowState.Maximized;
                Frm_Reporte.Show();
            }

            Cursor = Cursors.Default;
        }
Example #2
0
        private void Btn_Reporte_Click(object sender, EventArgs e)
        {
            Frm_Reporte frm_Reporte = new Frm_Reporte(usuario);

            frm_Reporte.Show();
        }