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

            rpt.Site = this.Site;
            return(rpt);
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!TransactionReportController.isUserPermittedToAccess())
     {
         userWarnLbl.Text  = "You're not authorized to access this page. Please login as admin!";
         logoutBtn.Visible = false;
     }
     else
     {
         TransactionReporting newReport = new TransactionReporting();
         ReportViewer.ReportSource = newReport;
         newReport.SetDataSource(GenerateData(TransactionReportController.getTransactionData()));
     }
 }