コード例 #1
0
ファイル: crReceipt.cs プロジェクト: Zan1995/Libraryca
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            crReceipt rpt = new crReceipt();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
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;
        }