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

            rpt.Site = this.Site;
            return(rpt);
        }
示例#2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //if (Page.IsPostBack)
            //{
            BDUTPEntities1      mde = new BDUTPEntities1();
            CrystalReportAlumno crp = new CrystalReportAlumno();

            crp.SetDataSource(mde.Alumnoes.Select(a => new {
                Codigo    = a.Codigo,
                Apellidos = a.Apellidos,
                Nombres   = a.Nombres,
                Documento = a.Documento,
                Telefono  = a.Telefono
            }));
            this.CrystalReportViewerAlumno.ReportSource = crp;
            this.CrystalReportViewerAlumno.DataBind();

            //}
        }