public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            GenreBorrowTrend rpt = new GenreBorrowTrend();

            rpt.Site = this.Site;
            return(rpt);
        }
Пример #2
0
        private void genreBorrowTrend_btn_Click(object sender, EventArgs e) //Generate CrossTab report of Genre of books borrowed per month
        {
            var qryGenreTrend = from x in ctx.GenreBorrowViews select x;    //pull data from created view GenreBorrowViews

            GenreBorrowTrend crGBT = new GenreBorrowTrend();

            crGBT.SetDataSource(qryGenreTrend);
            crystalReportViewer1.ReportSource = crGBT;
        }