Пример #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            crBookList rpt = new crBookList();

            rpt.Site = this.Site;
            return(rpt);
        }
Пример #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;
        }