示例#1
0
        private void frmPieChart_Load(object sender, EventArgs e)
        {
            LibrarySet ds = new LibrarySet();

            LibrarySetTableAdapters.BooksTableAdapter ta = new LibrarySetTableAdapters.BooksTableAdapter();
            ta.Fill(ds.Books);

            crPie cr = new crPie();

            cr.SetDataSource(ds);

            crvPieChart.ReportSource = cr;
        }
示例#2
0
        private void frmReport1_Load(object sender, EventArgs e)
        {
            LibrarySet ds = new LibrarySet();

            LibrarySetTableAdapters.BooksTableAdapter ta = new LibrarySetTableAdapters.BooksTableAdapter();
            ta.Fill(ds.Books);

            crBookList cr = new crBookList();

            cr.SetDataSource(ds);

            crvBookList.ReportSource = cr;
        }
示例#3
0
        private void crystalReportViewer1_Load(object sender, EventArgs e)
        {
            LibrarySet ds = new LibrarySet();

            LibrarySetTableAdapters.IssueTranTableAdapter itta = new LibrarySetTableAdapters.IssueTranTableAdapter();
            LibrarySetTableAdapters.MembersTableAdapter   mtta = new LibrarySetTableAdapters.MembersTableAdapter();
            LibrarySetTableAdapters.BooksTableAdapter     btta = new LibrarySetTableAdapters.BooksTableAdapter();
            itta.Fill(ds.IssueTran);
            mtta.Fill(ds.Members);
            btta.Fill(ds.Books);

            crManagementReport mit = new crManagementReport();

            mit.SetDataSource(ds);
            crystalReportViewer1.ReportSource = mit;
        }
示例#4
0
        private void crystalReportViewer1_Load(object sender, EventArgs e)
        {
            LibrarySet ds = new LibrarySet();

            LibrarySetTableAdapters.IssueTranTableAdapter itta = new LibrarySetTableAdapters.IssueTranTableAdapter();
            LibrarySetTableAdapters.MembersTableAdapter   mtta = new LibrarySetTableAdapters.MembersTableAdapter();
            LibrarySetTableAdapters.BooksTableAdapter     btta = new LibrarySetTableAdapters.BooksTableAdapter();
            ////To Generate Receipt from crReceipt
            itta.FillBy(ds.IssueTran, getid);
            mtta.Fill(ds.Members);
            btta.Fill(ds.Books);
            crReceipt mit = new crReceipt();

            mit.SetDataSource(ds);
            //To Generate Receipt from crManagement Report
            //itta.Fill(ds.IssueTran);
            //mtta.Fill(ds.Members);
            //btta.Fill(ds.Books);
            //crManagementReport mit = new crManagementReport();
            //mit.SetDataSource(ds);
            crystalReportViewer1.ReportSource = mit;
        }