public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            EmpruntsParAnneCrystalReport rpt = new EmpruntsParAnneCrystalReport();

            rpt.Site = this.Site;
            return(rpt);
        }
 private void EmpruntParAnne_Click(object sender, EventArgs e)
 {
     try
     {
         this.empruntsTableAdapter.Fill(this.biblioDataSet.Emprunts);
         EmpruntsParAnneCrystalReport EPA = new EmpruntsParAnneCrystalReport();
         EPA.SetDataSource((DataTable)this.biblioDataSet.Emprunts);
         crystalReportViewer1.ReportSource = EPA;
     }catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error");
     }
 }