Exemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CrystalReportBorrowingBookInfo rpt = new CrystalReportBorrowingBookInfo();

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            DataSetBookInfo ds = new DataSetBookInfo();

            DataSetBookInfoTableAdapters.ReceiptTableAdapter adapter = new DataSetBookInfoTableAdapters.ReceiptTableAdapter();
            adapter.Fill(ds.Receipt);
            CrystalReportBorrowingBookInfo cr = new CrystalReportBorrowingBookInfo();
            var aa = ds.Receipt.Where(x => x.TransactionID == transactionID && x.MemberID == memberID && bookList.Contains(x.BookID)).ToList();

            cr.SetDataSource(ds.Receipt.Where(x => x.TransactionID == transactionID && x.MemberID == memberID && bookList.Contains(x.BookID))
                             .Select(x => new { MemberID = x.MemberID, BookID = x.BookID, BookTitle = x.BookTitle, Author = x.Author, BookType = x.BookType, DateIssue = x.DateIssue, DateDue = x.DateDue }).ToList());
            frmReportBorrowingBookInfo viewer = new frmReportBorrowingBookInfo(cr);

            viewer.Show();
        }
Exemplo n.º 3
0
 public frmReportBorrowingBookInfo(CrystalReportBorrowingBookInfo report)
 {
     InitializeComponent();
     this.report = report;
 }