private void MonthlyRentalView_Load(object sender, EventArgs e)
 {
     Team08B_LibraryManagementSystemDataSet ds = new Team08B_LibraryManagementSystemDataSet();
     Team08B_LibraryManagementSystemDataSetTableAdapters.MonthlyrentalTableAdapter ta = new Team08B_LibraryManagementSystemDataSetTableAdapters.MonthlyrentalTableAdapter();
     ta.Fill(ds.Monthlyrental);
     month mrental = new month();
     mrental.SetDataSource(ds);
     crvMontlyrental.ReportSource = mrental;
 }
 private void overdue_Load(object sender, EventArgs e)
 {
     Team08B_LibraryManagementSystemDataSet ds = new Team08B_LibraryManagementSystemDataSet();
     Team08B_LibraryManagementSystemDataSetTableAdapters.overdueloansTableAdapter ta = new Team08B_LibraryManagementSystemDataSetTableAdapters.overdueloansTableAdapter();
               DueView ov=new DueView();
     ta.Fill(ds.overdueloans);
                 ov.SetDataSource(ds);
                 crvOverDue.ReportSource = ov;
 }
        private void Form1_Load(object sender, EventArgs e)
        {
            Team08B_LibraryManagementSystemDataSet ds = new Team08B_LibraryManagementSystemDataSet();
            Team08B_LibraryManagementSystemDataSetTableAdapters.MemberTableAdapter ta = new Team08B_LibraryManagementSystemDataSetTableAdapters.MemberTableAdapter();
            MemberReport cr = new MemberReport();
            ta.Fill(ds.Member);

            cr.SetDataSource(ds);
            crystalReportViewer1.ReportSource = cr;
        }
 private void IssueReport_Load(object sender, EventArgs e)
 {
     Team08B_LibraryManagementSystemDataSet ds = new Team08B_LibraryManagementSystemDataSet();
     Team08B_LibraryManagementSystemDataSetTableAdapters.ReceiptTableAdapter ta = new Team08B_LibraryManagementSystemDataSetTableAdapters.ReceiptTableAdapter();
     PrintReceipt r = new PrintReceipt();
     //Issue s = new Issue();
     ta.Fill(ds.Receipt,issueID);
     r.SetDataSource(ds);
     crvReceipt.ReportSource = r;
 }