예제 #1
0
        private void button2_Click_1(object sender, EventArgs e)
        {
            Reportes.Rep_Factura report = new Reportes.Rep_Factura();
            report.FilterString = "([ID_FACTURA]= " + txt_numero_factura.Text + ")";
            ReportPrintTool tool = new ReportPrintTool(report);

            tool.ShowPreview();
        }
예제 #2
0
        public void Imprimir()
        {
            Reportes.Rep_Factura report = new Reportes.Rep_Factura();
            BD_JSYSEntities      db     = new BD_JSYSEntities();
            var id_factura = db.FACTURAS.Where(r => r.CREADO_POR == S_Utilidades.Datos_Usuario.USUARIO).Max(r => r.ID_FACTURA);

            report.FilterString = "([ID_FACTURA]= " + id_factura + ")";
            ReportPrintTool tool = new ReportPrintTool(report);

            tool.ShowPreview();
        }
예제 #3
0
        private void verReporteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (DG.Rows.Count == 0)
            {
                return;
            }
            Reportes.Rep_Factura report = new Reportes.Rep_Factura();
            report.FilterString = "([ID_FACTURA] = " + DG.SelectedCells[0].Value + ")";
            ReportPrintTool tool = new ReportPrintTool(report);

            tool.ShowPreview();
        }