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

            rpt.Site = this.Site;
            return(rpt);
        }
        private void MemberOverdueForm_Load(object sender, EventArgs e)
        {
            Lib24Entities ctx = new Lib24Entities();

            var qryOverdue = from x in ctx.DueTrans select new
            {
                x.DueTranID,
                x.CustomerID,
                DueAmount = x.DueAmount ?? 0,
                Remarks   = x.Remarks ?? "",
            };


            MembersOverdue crMO = new MembersOverdue();

            crMO.SetDataSource(qryOverdue);
            crystalReportViewer1.ReportSource = crMO;
        }