Esempio n. 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            ListOfBooksCR rpt = new ListOfBooksCR();

            rpt.Site = this.Site;
            return(rpt);
        }
Esempio n. 2
0
        private void ListOfBooksReport_Load(object sender, EventArgs e)
        {
            SA47Team11aLibraryDS ds = new SA47Team11aLibraryDS();

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

            ListOfBooksCR cr = new ListOfBooksCR();

            cr.SetDataSource(ds);
            listOfBooksReportViewer.ReportSource = cr;
        }