Exemple #1
0
 private void Form_Reporte_Load(object sender, EventArgs e)
 {
     if (Facturaid > 0)
     {
         reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetFactura", facturaBL.ObtenerVentas(Facturaid)));
         reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetDetalle", facturaBL.ObtenerDetalleFactura(Facturaid)));
         this.reportViewer1.RefreshReport();
     }
 }
 private void Form_BuscarFactura_Load(object sender, EventArgs e)
 {
     dataGridView1.DataSource = facturaBL.ObtenerVentas(null);
 }