Beispiel #1
0
        private void ArticulosViewer_Load(object sender, EventArgs e)
        {
            ReporteArticulos abrir = new ReporteArticulos();

            abrir.SetDataSource(datos);
            ArticulosViewer.ReportSource = abrir;
            ArticulosViewer.Refresh();
        }
Beispiel #2
0
        private async void btnArticulos_Click(object sender, EventArgs e)
        {
            btnArticulos.Enabled = false;
            ReporteArticulos reporte = new ReporteArticulos();
            bool             impreso = false;
            await Task.Run(() => { Imprimir(reporte, "ReporteDeArticulos"); });

            btnArticulos.Enabled = true;
        }
Beispiel #3
0
 private void ReporteButton_Click(object sender, EventArgs e)
 {
     if (articulos.Count() == 0)
     {
         MessageBox.Show("el grid esta vacio", "Fallo", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else
     {
         ReporteArticulos abrir = new ReporteArticulos(articulos);
         abrir.ShowDialog();
     }
 }