Esempio n. 1
0
 /// <summary>
 /// Genera reporte de libros
 /// </summary>
 private void btnImprimir_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         using (var context = new BibliotecaContext())
         {
             CTRReporte reporte = new CTRReporte();
             var        data    = context.GetLibro(instancia.idLibro).ToList();
             reporte.crearReporte("DataSet1", "SIB.Reportes.ReporteLibro.rdlc", data);
             reporte.ShowDialog();
         }
     }
     catch (Exception ex)
     {
         ex.GuardarError();
     }
 }